Browse Source

Follow-up

master
Eduard Kuzmenko 2 years ago
parent
commit
fa4d3480a0
  1. 1
      src/components/popups/payment.ts
  2. 4
      src/components/row.ts
  3. 4
      src/scss/components/_global.scss

1
src/components/popups/payment.ts

@ -480,6 +480,7 @@ export default class PopupPayment extends PopupElement { @@ -480,6 +480,7 @@ export default class PopupPayment extends PopupElement {
options.subtitleLangKey = options.titleLangKey;
}
options.noWrap = true;
const row = new Row(options);
row.container.classList.add(className + '-row');

4
src/components/row.ts

@ -40,7 +40,8 @@ export default class Row { @@ -40,7 +40,8 @@ export default class Row {
clickable: boolean | ((e: Event) => void),
navigationTab: SliderSuperTab,
havePadding: boolean,
noRipple: boolean
noRipple: boolean,
noWrap: boolean
}> = {}) {
this.container = document.createElement(options.radioField || options.checkboxField ? 'label' : 'div');
this.container.classList.add('row');
@ -104,6 +105,7 @@ export default class Row { @@ -104,6 +105,7 @@ export default class Row {
this.title = document.createElement('div');
this.title.classList.add('row-title');
this.title.setAttribute('dir', 'auto');
if(options.noWrap) this.title.classList.add('no-wrap');
if(options.title) {
if(typeof(options.title) === 'string') {
this.title.innerHTML = options.title;

4
src/scss/components/_global.scss

@ -164,6 +164,10 @@ Utility Classes @@ -164,6 +164,10 @@ Utility Classes
white-space: pre-wrap !important;
}
.no-wrap {
white-space: nowrap !important;
}
.no-border-radius {
border-radius: 0 !important;
}

Loading…
Cancel
Save