fix(v2): scrollbar via .regles-optionnelles.applicationv2 > .window-content
Le id de DEFAULT_OPTIONS est l'id d'application ui.windows,
PAS l'id DOM (#application-N). Les classes ({classes}) sont
appliquées sur .window-app. CSS ciblé via la classe fonctionne.
This commit is contained in:
@@ -51,16 +51,4 @@ export class DialogEncaissementTables extends HandlebarsApplicationMixin(Applica
|
||||
nonmortel: TABLE_NONMORTEL_DISPLAY,
|
||||
}
|
||||
}
|
||||
|
||||
async _onRender(context, options) {
|
||||
this.element.style.flex = "1"
|
||||
this.element.style.display = "flex"
|
||||
this.element.style.flexDirection = "column"
|
||||
this.element.style.overflow = "hidden"
|
||||
const content = this.element.firstElementChild
|
||||
if (content) {
|
||||
content.style.overflowY = "auto"
|
||||
content.style.flex = "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -118,15 +118,6 @@ export class ReglesOptionnelles extends HandlebarsApplicationMixin(ApplicationV2
|
||||
}
|
||||
|
||||
async _onRender(context, options) {
|
||||
this.element.style.flex = "1"
|
||||
this.element.style.display = "flex"
|
||||
this.element.style.flexDirection = "column"
|
||||
this.element.style.overflow = "hidden"
|
||||
const content = this.element.firstElementChild
|
||||
if (content) {
|
||||
content.style.overflowY = "auto"
|
||||
content.style.flex = "1"
|
||||
}
|
||||
this.element.querySelectorAll(".select-option").forEach(el => {
|
||||
el.addEventListener("click", async event => {
|
||||
const id = event.currentTarget.getAttribute("name");
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<div>
|
||||
<style>
|
||||
.dialog-encaissement-tables.applicationv2 > .window-content { overflow-y: auto; }
|
||||
.encaissement-tables { display: flex; flex-direction: column; gap: 1.5em; }
|
||||
.encaissement-tables table { width: 100%; border-collapse: collapse; }
|
||||
.encaissement-tables th, .encaissement-tables td { padding: 4px 8px; border: 1px solid #7a7971; text-align: center; }
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<div>
|
||||
<style>
|
||||
.regles-optionnelles.applicationv2 > .window-content { overflow-y: auto; }
|
||||
</style>
|
||||
{{#each groups as |group key|}}
|
||||
<h3>{{key}}</h3>
|
||||
<ul>
|
||||
|
||||
Reference in New Issue
Block a user