Skip to content

Commit b0b6954

Browse files
committed
IBX-7329: Applied code review suggestions
1 parent f014aff commit b0b6954

File tree

4 files changed

+28
-29
lines changed

4 files changed

+28
-29
lines changed

src/bundle/Resources/public/scss/fieldType/edit/_base-field.scss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,16 +101,13 @@
101101
&__distraction-free-mode {
102102
margin: auto 0 0;
103103
align-self: baseline;
104+
width: 20%;
104105
}
105106

106107
&__label-wrapper {
107108
width: 80%;
108109
}
109110

110-
&__distraction-free-mode {
111-
width: 20%;
112-
}
113-
114111
&__data {
115112
width: 100%;
116113
}

src/bundle/Resources/translations/ibexa_admin_ui.en.xliff

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,31 @@
1111
<target state="new">Missing or invalid CSRF token</target>
1212
<note>key: asset.upload.invalid_csrf</note>
1313
</trans-unit>
14+
<trans-unit id="68a1a5ea4fa56098f5eae44460514a09ea8f8509" resname="distraction_free_mode.disable.label">
15+
<source>Exit distraction free mode</source>
16+
<target state="new">Exit distraction free mode</target>
17+
<note>key: distraction_free_mode.disable.label</note>
18+
</trans-unit>
19+
<trans-unit id="3b73a0132e7934156fcf413f3af229612d8eca9c" resname="distraction_free_mode.disable.tooltip">
20+
<source>Exit distraction free mode.</source>
21+
<target state="new">Exit distraction free mode.</target>
22+
<note>key: distraction_free_mode.disable.tooltip</note>
23+
</trans-unit>
24+
<trans-unit id="d4de5a4ec1a58e845b16ca57b75b6b7585b2c5af" resname="distraction_free_mode.disable_hint">
25+
<source>To exit distraction free mode, click the %icon% or press Esc.</source>
26+
<target state="new">To exit distraction free mode, click the %icon% or press Esc.</target>
27+
<note>key: distraction_free_mode.disable_hint</note>
28+
</trans-unit>
29+
<trans-unit id="2b32ded42b66d42abbe117ec91d128e2c85bd20d" resname="distraction_free_mode.enable.label">
30+
<source>Distraction free mode</source>
31+
<target state="new">Distraction free mode</target>
32+
<note>key: distraction_free_mode.enable.label</note>
33+
</trans-unit>
34+
<trans-unit id="8145d8a19ad7bb79048f2a1391153c8f45b2d14f" resname="distraction_free_mode.enable.tooltip">
35+
<source>Enter distraction free mode. It shows only rich text editor toolbar and focuses your attention on editing text.</source>
36+
<target state="new">Enter distraction free mode. It shows only rich text editor toolbar and focuses your attention on editing text.</target>
37+
<note>key: distraction_free_mode.enable.tooltip</note>
38+
</trans-unit>
1439
<trans-unit id="d899cb1dbb25a42ea34f296bf7bef9821df66b72" resname="edit_translation.edit.title">
1540
<source>Edit</source>
1641
<target state="new">Edit</target>

src/bundle/Resources/translations/messages.en.xliff

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -261,31 +261,6 @@
261261
<target state="new">No results found</target>
262262
<note>key: dashboard.charts.no_results</note>
263263
</trans-unit>
264-
<trans-unit id="68a1a5ea4fa56098f5eae44460514a09ea8f8509" resname="distraction_free_mode.disable.label">
265-
<source>Exit Distraction free mode</source>
266-
<target state="new">Exit Distraction free mode</target>
267-
<note>key: distraction_free_mode.disable.label</note>
268-
</trans-unit>
269-
<trans-unit id="3b73a0132e7934156fcf413f3af229612d8eca9c" resname="distraction_free_mode.disable.tooltip">
270-
<source>Exit Distraction free mode.</source>
271-
<target state="new">Exit Distraction free mode.</target>
272-
<note>key: distraction_free_mode.disable.tooltip</note>
273-
</trans-unit>
274-
<trans-unit id="d4de5a4ec1a58e845b16ca57b75b6b7585b2c5af" resname="distraction_free_mode.disable_hint">
275-
<source>To exit distraction free mode, click the %icon% or press Esc.</source>
276-
<target state="new">To exit distraction free mode, click the %icon% or press Esc.</target>
277-
<note>key: distraction_free_mode.disable_hint</note>
278-
</trans-unit>
279-
<trans-unit id="2b32ded42b66d42abbe117ec91d128e2c85bd20d" resname="distraction_free_mode.enable.label">
280-
<source>Distraction free mode</source>
281-
<target state="new">Distraction free mode</target>
282-
<note>key: distraction_free_mode.enable.label</note>
283-
</trans-unit>
284-
<trans-unit id="8145d8a19ad7bb79048f2a1391153c8f45b2d14f" resname="distraction_free_mode.enable.tooltip">
285-
<source>Enter distraction free mode. It shows only rich text editor toolbar and focuses your attention on editing text.</source>
286-
<target state="new">Enter distraction free mode. It shows only rich text editor toolbar and focuses your attention on editing text.</target>
287-
<note>key: distraction_free_mode.enable.tooltip</note>
288-
</trans-unit>
289264
<trans-unit id="272e650f8667b4f4fcb7032b85b98ef4a9974f0f" resname="dropdown.search">
290265
<source>Search...</source>
291266
<target state="new">Search...</target>

src/bundle/Resources/views/themes/admin/ui/form_fields.html.twig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,8 @@
508508
{%- endblock %}
509509

510510
{%- block distraction_free_mode -%}
511+
{% trans_default_domain 'ibexa_admin_ui' %}
512+
511513
{%- set title_icon -%}
512514
<svg class="ibexa-icon ibexa-icon--small">
513515
<use xlink:href="{{ ibexa_icon_path('un-focus') }}"></use>

0 commit comments

Comments
 (0)