File tree Expand file tree Collapse file tree 2 files changed +21
-28
lines changed Expand file tree Collapse file tree 2 files changed +21
-28
lines changed Original file line number Diff line number Diff line change 116116 width : 100% ;
117117 box-sizing : border-box ;
118118
119- & .info {
120- padding : 0 ;
121- }
122-
123119 & ::before {
124120 content : attr (data-label );
125121 font-weight : bold ;
137133 align-items : center ;
138134 justify-content : center ;
139135 background-color : var (--surface-300 );
140- padding : 2rem ;
141136 gap : 1rem ;
137+ padding : 0.75rem ;
138+
139+ & ::before {
140+ content : attr (data-label );
141+ font-weight : bold ;
142+ display : inline ;
143+ margin-bottom : 0 ;
144+ color : var (--text );
145+ font-size : 0.9em ;
146+ }
142147
143148 .enabling {
144149 display : flex ;
145150 align-items : center ;
146151 justify-content : center ;
147152 gap : 0.75rem ;
148-
149- & ::before {
150- content : " Enable" ;
151- font-weight : bold ;
152- color : var (--text );
153- font-size : 0.9em ;
154- }
155153 }
156154 }
157155
158156 .channelInfo {
159- & ::before {
160- content : " When Channel" ;
161- }
162-
163157 > div :first-child {
164158 margin-bottom : 0.75rem ;
165159
195189 }
196190
197191 .range {
198- & ::before {
199- content : " Is In Range" ;
200- }
201-
202192 padding : 0.75rem ;
203193
204194 .channel-slider {
214204 }
215205
216206 .functionSelection {
217- & ::before {
218- content : " Then Apply Function" ;
219- }
220-
221207 select {
222208 width : 100% ;
223209 padding : 0.5rem ;
228214 }
229215
230216 .functionSwitchChannel {
231- & ::before {
232- content : " Via Channel" ;
233- }
234-
235217 select {
236218 width : 100% ;
237219 padding : 0.5rem ;
Original file line number Diff line number Diff line change @@ -39,6 +39,17 @@ adjustments.initialize = function (callback) {
3939 $ ( newAdjustment ) . attr ( "id" , `adjustment-${ adjustmentIndex } ` ) ;
4040 $ ( newAdjustment ) . data ( "index" , adjustmentIndex ) ;
4141
42+ // Set localized data-label attributes for mobile responsive layout
43+ $ ( newAdjustment ) . find ( ".info" ) . attr ( "data-label" , i18n . getMessage ( "adjustmentsColumnEnable" ) ) ;
44+ $ ( newAdjustment ) . find ( ".channelInfo" ) . attr ( "data-label" , i18n . getMessage ( "adjustmentsColumnWhenChannel" ) ) ;
45+ $ ( newAdjustment ) . find ( ".range" ) . attr ( "data-label" , i18n . getMessage ( "adjustmentsColumnIsInRange" ) ) ;
46+ $ ( newAdjustment )
47+ . find ( ".functionSelection" )
48+ . attr ( "data-label" , i18n . getMessage ( "adjustmentsColumnThenApplyFunction" ) ) ;
49+ $ ( newAdjustment )
50+ . find ( ".functionSwitchChannel" )
51+ . attr ( "data-label" , i18n . getMessage ( "adjustmentsColumnViaChannel" ) ) ;
52+
4253 //
4354 // populate source channel select box
4455 //
You can’t perform that action at this time.
0 commit comments