mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-31 20:09:11 +00:00
fix(operator): let the group header size to its content
The header had a fixed height, so a title taller than 2.5rem was clipped and the follow offset kept placing the running event behind it. Trim the vertical padding so a single line fits inside the min-height on its own. The header then keeps the size it has today without depending on the list shrinking it, and grows when its content needs more. The follow offset already measures the header at scroll time, so it tracks the change.
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
.group {
|
||||
width: 100%;
|
||||
/* Fixed: title and meta never wrap, and the group wrapper keeps the list from shrinking the header. */
|
||||
height: 2.5rem;
|
||||
padding: 0.4rem 0.75rem;
|
||||
/* Padding is kept under the min-height so a single line fits without the list having to shrink the header,
|
||||
while a taller title still grows the row. */
|
||||
min-height: 2.5rem;
|
||||
padding: 0.25rem 0.75rem;
|
||||
border-left: 0.35rem solid var(--group-colour, $gray-500);
|
||||
background-color: $gray-1350;
|
||||
background: color-mix(in srgb, transparent 88%, var(--group-colour, $gray-500) 12%);
|
||||
|
||||
Reference in New Issue
Block a user