File tree Expand file tree Collapse file tree 12 files changed +96
-15
lines changed
documents-machine-translations-button
related-translations-list/item Expand file tree Collapse file tree 12 files changed +96
-15
lines changed Original file line number Diff line number Diff line change 202
202
"reviewed" : " reviewed" ,
203
203
"activities_title" : " Latest activities" ,
204
204
"item" : {
205
+ "rtl_badge" : " RTL" ,
206
+ "rtl" : " Right to left text" ,
205
207
"correct_all_button" : " Mark all strings as reviewed" ,
206
208
"uncorrect_all_button" : " Put all strings back in review"
207
209
}
Original file line number Diff line number Diff line change 218
218
"reviewed" : " revu" ,
219
219
"activities_title" : " Dernières activités" ,
220
220
"item" : {
221
+ "rtl_badge" : " RTL" ,
222
+ "rtl" : " Texte de droite à gauche" ,
221
223
"correct_all_button" : " Marquer toutes les chaînes comme vérifiées" ,
222
224
"uncorrect_all_button" : " Remettre toutes les chaînes à réviser"
223
225
}
Original file line number Diff line number Diff line change 31
31
.item-details {
32
32
display : flex ;
33
33
flex-direction : column ;
34
+
35
+ & [data-dir = ' rtl' ] {
36
+ .item-details__column {
37
+ align-items : flex-end ;
38
+ }
39
+ .item-details__column :first-of-type {
40
+ margin-right : 0 ;
41
+ margin-left : 15px ;
42
+ }
43
+
44
+ .item-key {
45
+ margin-right : 0 ;
46
+ margin-left : 15px ;
47
+ flex-direction : row-reverse ;
48
+ }
49
+
50
+ .item-key-prefix ::before {
51
+ content : ' ' ;
52
+ }
53
+
54
+ .item-key-prefix ::after {
55
+ content : ' /' ;
56
+ }
57
+ }
34
58
}
35
59
36
60
.item-details__column {
154
178
}
155
179
156
180
.item-key-prefix {
157
- display : block ;
181
+ display : inline-flex ;
158
182
font-size : 11px ;
159
183
color : #959595 ;
184
+ gap : 6px ;
160
185
font-weight : 300 ;
161
186
162
187
& ::before {
163
188
content : ' /' ;
164
- margin-right : -5px ;
165
189
}
166
190
}
167
191
168
192
.item-key {
169
193
display : flex ;
170
194
align-items : center ;
171
- gap : 3 px ;
195
+ gap : 5 px ;
172
196
margin-bottom : 12px ;
173
197
font-family : var (--font-monospace );
174
198
word-break : break-all ;
214
238
justify-content : flex-end ;
215
239
position : absolute ;
216
240
gap : 10px ;
217
- top : 7 px ;
218
- right : 7 px ;
241
+ top : 10 px ;
242
+ right : 10 px ;
219
243
z-index : 3 ;
220
244
221
245
& [data-dir = ' rtl' ] {
Original file line number Diff line number Diff line change 25
25
</div >
26
26
</div >
27
27
{{ else }}
28
- <div local-class =' item-details' >
28
+ <div local-class =' item-details' data-dir = {{ if this.revisionTextDirRtl ' rtl ' }} >
29
29
<div local-class =' item-details__column' >
30
30
<LinkTo @route =' logged-in.project.translation' @models ={{ array @project.id @conflict.id }} local-class =' key' >
31
31
<strong local-class =' item-key' >
Original file line number Diff line number Diff line change @@ -68,6 +68,10 @@ export default class DashboardRevisionsItem extends Component<Args> {
68
68
return this . args . revision . name || this . args . revision . language . name ;
69
69
}
70
70
71
+ get rtl ( ) {
72
+ return this . args . revision . rtl || this . args . revision . language . rtl ;
73
+ }
74
+
71
75
@action
72
76
toggleShowActions ( ) {
73
77
this . showActions = ! this . showActions ;
Original file line number Diff line number Diff line change 12
12
{{ #if (get @permissions ' index_translations' )}}
13
13
<LinkTo @route =' logged-in.project.revision.translations' @models ={{ array @project.id @revision.id }} local-class =' language-name' >
14
14
{{ this.languageName }}
15
+ {{ #if this.rtl }}
16
+ <AccBadge class =' tooltip tooltip--top' title ={{ t ' components.dashboard_revisions.item.rtl' }} >
17
+ {{ t ' components.dashboard_revisions.item.rtl_badge' }}
18
+ </AccBadge >
19
+ {{ /if }}
15
20
<span local-class =' language-reviewedPercentage' >
16
21
{{ this.correctedKeysPercentage }}
17
22
%
Original file line number Diff line number Diff line change 1
- <LinkTo @route =' logged-in.project.files.new-machine-translations' @model ={{ @project.id }} local-class =' button' class =' button button--borderLess button--filled button--white ' >
1
+ <LinkTo @route =' logged-in.project.files.new-machine-translations' @model ={{ @project.id }} local-class =' button' class =' button button--borderLess button--filled button--grey ' >
2
2
{{ inline-svg ' /assets/language.svg' class =' button-icon' }}
3
3
{{ t ' components.documents_machine_translations_button.link' }}
4
4
</LinkTo >
Original file line number Diff line number Diff line change 81
81
right : 14px ;
82
82
83
83
& [data-dir = ' rtl' ] {
84
+ flex-direction : row-reverse ;
84
85
right : auto ;
85
86
left : 14px ;
86
87
}
Original file line number Diff line number Diff line change 7
7
border : 1px solid transparent ;
8
8
border-radius : var (--border-radius );
9
9
10
+ & [data-dir = ' rtl' ] {
11
+ .item-header {
12
+ flex-direction : row-reverse ;
13
+
14
+ .item-edit-wrapper {
15
+ flex-direction : row-reverse ;
16
+ }
17
+
18
+ .item-meta {
19
+ flex-direction : row-reverse ;
20
+ margin-right : 10px ;
21
+ }
22
+
23
+ .item-updatedAt {
24
+ margin-left : 0 ;
25
+ margin-right : 10px ;
26
+ }
27
+
28
+ .item-key {
29
+ flex-direction : row-reverse ;
30
+ }
31
+
32
+ .item-key-prefix ::before {
33
+ content : ' ' ;
34
+ }
35
+ .item-key-prefix ::after {
36
+ content : ' /' ;
37
+ }
38
+ }
39
+ }
40
+
10
41
& :focus ,
11
42
& :hover {
12
43
background : var (--background-light );
16
47
opacity : 1 ;
17
48
}
18
49
50
+ & [data-dir = ' rtl' ] {
51
+ .item-edit {
52
+ transform : translateX (40px );
53
+ }
54
+ }
55
+
19
56
.item-edit {
20
57
transform : translateX (-40px );
21
58
opacity : 1 ;
55
92
}
56
93
}
57
94
95
+ .item-edit-wrapper {
96
+ display : flex ;
97
+ }
98
+
58
99
.item-header {
59
100
position : relative ;
60
101
display : flex ;
89
130
}
90
131
91
132
.item-key-prefix {
92
- display : block ;
133
+ display : inline-flex ;
134
+ gap : 5px ;
93
135
font-size : 11px ;
94
136
color : #959595 ;
95
137
flex-shrink : 0 ;
96
138
font-weight : 300 ;
97
139
98
140
& ::before {
99
141
content : ' /' ;
100
- margin-right : -5px ;
101
142
}
102
143
}
103
144
104
145
.item-key {
105
146
display : flex ;
106
147
align-items : center ;
107
- gap : 2 px ;
148
+ gap : 5 px ;
108
149
transition : 0.2s ease-in-out ;
109
150
transition-property : color ;
110
- margin-right : 10px ;
111
151
color : var (--color-primary );
112
152
line-height : 1.5 ;
113
153
word-break : break-all ;
197
237
& [data-dir = ' rtl' ] {
198
238
right : auto ;
199
239
left : 14px ;
240
+ flex-direction : row-reverse ;
200
241
}
201
242
}
202
243
Original file line number Diff line number Diff line change 1
- <li local-class =' translations-list-item {{ if this.isInEditMode " item--editMode" }} ' >
2
- <span local-class =' item-header' >
3
- <span >
1
+ <li local-class =' translations-list-item {{ if this.isInEditMode " item--editMode" }} ' data-dir = {{ if this.revisionTextDirRtl ' rtl ' }} >
2
+ <span local-class =' item-header' data-dir = {{ if this.revisionTextDirRtl ' rtl ' }} >
3
+ <span local-class = ' item-edit-wrapper ' >
4
4
<span local-class =' item-edit' >
5
5
<span role =' button' {{ on ' click' (fn this.toggleEdit )}} >
6
6
{{ #if this.isInEditMode }}
Original file line number Diff line number Diff line change @@ -134,9 +134,11 @@ export default gql`
134
134
translationsCount
135
135
isMaster
136
136
name
137
+ rtl
137
138
language {
138
139
id
139
140
name
141
+ rtl
140
142
}
141
143
}
142
144
Original file line number Diff line number Diff line change 236
236
}
237
237
238
238
.button--grey {
239
- color : #8a8a8a ;
239
+ color : #000 ;
240
240
border-color : var (--background-light );
241
241
242
242
& .button--loading svg .loading {
You can’t perform that action at this time.
0 commit comments