Follow-up

This commit is contained in:
Eduard Kuzmenko 2022-07-18 20:39:57 +02:00
parent 2c9d5c30fe
commit fa4d3480a0
3 changed files with 8 additions and 1 deletions

View File

@ -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');

View File

@ -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 {
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;

View File

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