mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-31 20:09:11 +00:00
feat(ui): fit the message control panel on a small laptop
The panel absorbs whatever height the playback control above it leaves, and its content was a fixed stack taller than that space on a 1280x800 screen - with the container set to hide overflow, the secondary message input was silently clipped off the bottom. The stage preview is now the only elastic element and the controls are the fixed floor, which is the way round an operator needs it. The control stack also gets shorter: blink and blackout share a row, and the secondary source select moves next to the secondary text input. That regrouping removes the duelling owners of `secondarySource`. The select picks the source and the eye toggles the line on and off, so the "Show secondary" button - which wrote the same field from a second place, and made picking an aux read as "secondary message hidden" - is gone along with the local mirror of the remote state it needed. Also: blackout now uses the destructive button variant, the toggles expose `aria-pressed`, and the input rows use the shared editor label. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011CHxSQ6nWHuyar8feieRra
This commit is contained in:
@@ -1,9 +1,19 @@
|
||||
.preview {
|
||||
position: relative;
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: $element-inner-spacing;
|
||||
}
|
||||
|
||||
/* the stage is the only elastic element in the panel, the controls below it keep their size */
|
||||
.stage {
|
||||
flex: 1 1 auto;
|
||||
min-height: 3rem;
|
||||
/* keep the height driven frame from growing wider than the panel */
|
||||
max-height: calc(100cqw * 9 / 16);
|
||||
display: grid;
|
||||
place-items: center;
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* the frame is a query container so that the embedded timer scales to the preview, not to the viewport */
|
||||
@@ -13,8 +23,7 @@
|
||||
contain: paint;
|
||||
overflow: hidden;
|
||||
aspect-ratio: 16 / 9;
|
||||
width: 100%;
|
||||
max-height: 100%;
|
||||
height: 100%;
|
||||
border-radius: $component-border-radius-md;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user