Fix sticky th

This commit is contained in:
Curry141 2025-04-15 18:18:50 +02:00 committed by GitHub
parent 8bb306e44d
commit 232a50ac20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 6 deletions

View File

@ -192,29 +192,28 @@ table.image-table img {
border-spacing: 0; border-spacing: 0;
margin: auto; margin: auto;
border: 2px solid gray; border: 2px solid gray;
overflow: hidden;
} }
.lista-mezzi thead{ .lista-mezzi thead{
background-color: #282828; background-color: #282828;
position: sticky; position: sticky;
top: 0; top: 0;
display: table;
width: 100%;
table-layout: fixed;
} }
.lista-mezzi th, .lista-mezzi td{ .lista-mezzi th, .lista-mezzi td{
padding: 10px; padding: 10px;
text-align: center; text-align: center;
border: 1px solid gray; border: 1px solid gray;
white-space: nowrap;
} }
.lista-mezzi thead th{ .lista-mezzi thead th{
position: sticky; position: sticky;
top: 0; top: 0;
z-index: 2; z-index: 2;
} }
.lista-mezzi thead tr{
display: table;
width: 100%;
table-layout: fixed;
}
.lista-mezzi tbody{ .lista-mezzi tbody{
display: block;
overflow-y: auto; overflow-y: auto;
} }
.lista-mezzi tbody tr{ .lista-mezzi tbody tr{