fix(v2): scrollbar dans LESS, pas de style inline/template

Les rules flex+overflow pour les forms AppV2 sont dans
foundryvtt-reve-de-dragon.less. Plus aucun style inline
dans _onRender ni <style> dans les templates.
This commit is contained in:
fabres
2026-07-22 00:29:56 +02:00
parent 6fdb07a4e8
commit 00edfe8201
4 changed files with 45 additions and 11 deletions
+28
View File
@@ -4899,6 +4899,34 @@ body {
margin: 0.2rem;
padding: 0;
}
.system-foundryvtt-reve-de-dragon .window-app.regles-optionnelles.applicationv2 > .window-content > form,
.system-foundryvtt-reve-de-dragon .window-app.dialog-encaissement-tables.applicationv2 > .window-content > form {
flex: 1;
min-height: 0;
overflow-y: auto;
}
.system-foundryvtt-reve-de-dragon .encaissement-tables {
display: flex;
flex-direction: column;
gap: 1.5em;
}
.system-foundryvtt-reve-de-dragon .encaissement-tables table {
width: 100%;
border-collapse: collapse;
}
.system-foundryvtt-reve-de-dragon .encaissement-tables th,
.system-foundryvtt-reve-de-dragon .encaissement-tables td {
padding: 4px 8px;
border: 1px solid #7a7971;
text-align: center;
}
.system-foundryvtt-reve-de-dragon .encaissement-tables th {
background: rgba(0, 0, 0, 0.1);
font-weight: bold;
}
.system-foundryvtt-reve-de-dragon .encaissement-tables .type-cell {
text-align: left;
}
.system-foundryvtt-reve-de-dragon section.window-content div.dialog-buttons {
margin-top: 1rem;
}
+17
View File
@@ -74,6 +74,23 @@
padding: 0;
}
.window-app.regles-optionnelles.applicationv2 > .window-content > form,
.window-app.dialog-encaissement-tables.applicationv2 > .window-content > form {
flex: 1;
min-height: 0;
overflow-y: auto;
}
.encaissement-tables {
display: flex;
flex-direction: column;
gap: 1.5em;
table { width: 100%; border-collapse: collapse; }
th, td { padding: 4px 8px; border: 1px solid #7a7971; text-align: center; }
th { background: rgba(0,0,0,0.1); font-weight: bold; }
.type-cell { text-align: left; }
}
section.window-content div.dialog-buttons {
margin-top: 1rem;
}
@@ -1,12 +1,4 @@
<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; }
.encaissement-tables th { background: rgba(0,0,0,0.1); font-weight: bold; }
.encaissement-tables .type-cell { text-align: left; }
</style>
<div class="encaissement-tables">
<section>
<h2>Table mortelle</h2>
@@ -1,7 +1,4 @@
<div>
<style>
.regles-optionnelles.applicationv2 > .window-content { overflow-y: auto; }
</style>
{{#each groups as |group key|}}
<h3>{{key}}</h3>
<ul>