WebUI: Improve table overflow handling

This PR relies on flexbox to ensure all WebUI tables are the correct height without overflowing. Table headers are now always visible and JS-based dynamic resizing is no longer needed.

PR #21652.
This commit is contained in:
Thomas Piccirello
2024-11-03 00:11:30 -07:00
committed by GitHub
parent b083029841
commit dc30b9c2ec
9 changed files with 65 additions and 73 deletions

View File

@@ -246,6 +246,7 @@ li.divider {
}
.pad {
height: 100%;
padding: 8px;
}

View File

@@ -32,6 +32,11 @@
vertical-align: middle;
}
#transferList #transferList_pad {
/* override for default mocha inline style */
display: flex !important;
}
tr.dynamicTableHeader {
cursor: pointer;
}
@@ -82,7 +87,14 @@ tr.dynamicTableHeader {
padding-left: 25px;
}
div:has(> div.dynamicTableFixedHeaderDiv):not(.invisible) {
display: flex;
flex-direction: column;
height: 100%;
}
.dynamicTableFixedHeaderDiv {
flex-shrink: 0;
overflow: hidden;
}
@@ -92,6 +104,7 @@ tr.dynamicTableHeader {
}
.dynamicTableDiv {
flex-grow: 1;
overflow: auto;
}

View File

@@ -270,6 +270,14 @@ a.propButton img {
overflow: hidden auto;
}
.propertiesTabContent {
height: 100%;
> div {
height: 100%;
}
}
/* context menu specific */
.contextMenu {