diff --git a/src/bundle/Resources/public/scss/fieldType/edit/_base-field.scss b/src/bundle/Resources/public/scss/fieldType/edit/_base-field.scss index 98cf2c0fed..31f3982f5d 100644 --- a/src/bundle/Resources/public/scss/fieldType/edit/_base-field.scss +++ b/src/bundle/Resources/public/scss/fieldType/edit/_base-field.scss @@ -101,16 +101,13 @@ &__distraction-free-mode { margin: auto 0 0; align-self: baseline; + width: 20%; } &__label-wrapper { width: 80%; } - &__distraction-free-mode { - width: 20%; - } - &__data { width: 100%; } diff --git a/src/bundle/Resources/translations/ibexa_admin_ui.en.xliff b/src/bundle/Resources/translations/ibexa_admin_ui.en.xliff index 14d07787e5..d81629128f 100644 --- a/src/bundle/Resources/translations/ibexa_admin_ui.en.xliff +++ b/src/bundle/Resources/translations/ibexa_admin_ui.en.xliff @@ -11,6 +11,31 @@ Missing or invalid CSRF token key: asset.upload.invalid_csrf + + Exit distraction free mode + Exit distraction free mode + key: distraction_free_mode.disable.label + + + Exit distraction free mode. + Exit distraction free mode. + key: distraction_free_mode.disable.tooltip + + + To exit distraction free mode, click the %icon% or press Esc. + To exit distraction free mode, click the %icon% or press Esc. + key: distraction_free_mode.disable_hint + + + Distraction free mode + Distraction free mode + key: distraction_free_mode.enable.label + + + Enter distraction free mode. It shows only rich text editor toolbar and focuses your attention on editing text. + Enter distraction free mode. It shows only rich text editor toolbar and focuses your attention on editing text. + key: distraction_free_mode.enable.tooltip + Edit Edit diff --git a/src/bundle/Resources/translations/messages.en.xliff b/src/bundle/Resources/translations/messages.en.xliff index 194212b817..c54ed4c470 100644 --- a/src/bundle/Resources/translations/messages.en.xliff +++ b/src/bundle/Resources/translations/messages.en.xliff @@ -261,31 +261,6 @@ No results found key: dashboard.charts.no_results - - Exit Distraction free mode - Exit Distraction free mode - key: distraction_free_mode.disable.label - - - Exit Distraction free mode. - Exit Distraction free mode. - key: distraction_free_mode.disable.tooltip - - - To exit distraction free mode, click the %icon% or press Esc. - To exit distraction free mode, click the %icon% or press Esc. - key: distraction_free_mode.disable_hint - - - Distraction free mode - Distraction free mode - key: distraction_free_mode.enable.label - - - Enter distraction free mode. It shows only rich text editor toolbar and focuses your attention on editing text. - Enter distraction free mode. It shows only rich text editor toolbar and focuses your attention on editing text. - key: distraction_free_mode.enable.tooltip - Search... Search... diff --git a/src/bundle/Resources/views/themes/admin/ui/form_fields.html.twig b/src/bundle/Resources/views/themes/admin/ui/form_fields.html.twig index b8c3c03443..42c033d04c 100644 --- a/src/bundle/Resources/views/themes/admin/ui/form_fields.html.twig +++ b/src/bundle/Resources/views/themes/admin/ui/form_fields.html.twig @@ -508,6 +508,8 @@ {%- endblock %} {%- block distraction_free_mode -%} + {% trans_default_domain 'ibexa_admin_ui' %} + {%- set title_icon -%}