mirror of https://github.com/ospab/ostp.git
Fix GUI scrolling: remove extra closing divs and prevent flex children from shrinking
This commit is contained in:
parent
e31a651eb1
commit
83f14ec209
|
|
@ -360,8 +360,6 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- DNS Prober Modal -->
|
||||
<div id="dns-prober-modal" class="modal-overlay hidden">
|
||||
|
|
|
|||
|
|
@ -634,6 +634,7 @@ html[data-theme="light"] .watermark {
|
|||
/* ── Settings screen layout ───────────────────────────────────────────────── */
|
||||
.settings-body {
|
||||
flex: 1;
|
||||
min-height: 0; /* allow this flex child to shrink so its scrollable child can scroll */
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
|
|
@ -696,12 +697,17 @@ html[data-theme="light"] .watermark {
|
|||
|
||||
.card.scrollable {
|
||||
flex: 1;
|
||||
min-height: 0; /* required so overflow-y:auto actually scrolls inside the flex column */
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: rgba(255,255,255,0.08) transparent;
|
||||
}
|
||||
|
||||
.card.scrollable > * {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.card.scrollable::-webkit-scrollbar { width: 3px; }
|
||||
.card.scrollable::-webkit-scrollbar-track { background: transparent; }
|
||||
.card.scrollable::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 10px; }
|
||||
|
|
|
|||
Loading…
Reference in New Issue