Follow-up
This commit is contained in:
parent
2c9d5c30fe
commit
fa4d3480a0
@ -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');
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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…
Reference in New Issue
Block a user