Skip to content

Commit 96905f8

Browse files
tamaralogeecomTamara Vukovic
andauthored
Update style for select element when label is longer (#7)
* Update css for select element on repeater fields component when label is longer ISSUE: LIS-72 * Fix variable declaration ISSUE: LIS-72 * Add missing space after if keyword ISSUE: LIS-72 * Remove duplicated code ISSUE: LIS-72 --------- Co-authored-by: Tamara Vukovic <tamara.vukovic@logeecom.com>
1 parent 269a184 commit 96905f8

File tree

9 files changed

+296
-36
lines changed

9 files changed

+296
-36
lines changed

dist/resources/css/sequra-core.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1561,6 +1561,9 @@
15611561
background-size: 16px 16px;
15621562
cursor: pointer;
15631563
vertical-align: middle;
1564+
overflow: hidden;
1565+
text-overflow: ellipsis;
1566+
white-space: nowrap;
15641567
}
15651568
#sequra-page .sq-table .sq-table__row .sq-table__row-field {
15661569
padding: 6px 16px;
@@ -1569,6 +1572,7 @@
15691572
border-radius: 6px;
15701573
margin-left: 0;
15711574
margin-right: 0;
1575+
width: 90%;
15721576
}
15731577
#sequra-page .sq-table .sq-table__body {
15741578
display: grid;

dist/resources/js/TranslationService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ if (!window.SequraFE) {
3535
* @returns {null|string}
3636
*/
3737
const getTranslation = (type, group, key) => {
38-
if (SequraFE.translations[type][group] && SequraFE.translations[type][group]) {
38+
if (SequraFE.translations[type][group]) {
3939
let value = SequraFE.translations[type][group];
4040
if (Array.isArray(key)) {
4141
return key.reduce((value, key) => {

dist/resources/js/UtilityService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ if (!window.SequraFE) {
5858
const saveButton = document.querySelector('.sq-page-footer .sqp-actions .sqp-save');
5959
const cancelButton = document.querySelector('.sq-page-footer .sqp-actions .sqp-cancel');
6060

61-
if(saveButton && cancelButton){
61+
if (saveButton && cancelButton) {
6262
saveButton.disabled = disable;
6363
cancelButton.disabled = disable;
6464
}

dist/resources/js/ValidationService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ if (typeof SequraFE.regex === 'undefined'){
310310
'validation.invalidJSON'
311311
) && isValid;
312312

313-
isPaymentMethodValid = allowedPaymentMethods.some(pm => pm.product === location.product)
313+
let isPaymentMethodValid = allowedPaymentMethods.some(pm => pm.product === location.product)
314314
&& value.filter(l => l.product === location.product).length === 1;
315315

316316
isValid = validateField(

0 commit comments

Comments
 (0)