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.subtitleLangKey = options.titleLangKey;
} }
options.noWrap = true;
const row = new Row(options); const row = new Row(options);
row.container.classList.add(className + '-row'); row.container.classList.add(className + '-row');

View File

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

View File

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