Timers: steadier menu, ellipsised labels, saner warning window
- The Timers ▾ menu's rows are rebuilt only when the row set or a switch changes, not on every snapshot — rows no longer vanish from under a click. Their on-state fill uses the shell's accent: the menu hangs off the title bar, outside the tile root, where the tile's colour properties don't reach. - A long timer label ends in an ellipsis (the label is its own box inside the flex name row). - The warning window is capped at half a timer's length, so a 20 s countdown isn't amber for its whole run (it warns under 10 s; a 25 min one under 2:30). - Server: the change key that gates SSE frames ignores startedAt (derived from a whole-second value, it jittered ±500 ms per poll and doubled the frame rate); ProPresenter errors name the cause (ECONNREFUSED) rather than fetch's "fetch failed". Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
1e92454e76
commit
555bc482ce
@@ -164,8 +164,15 @@
|
||||
text-transform: uppercase;
|
||||
color: var(--muted);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* The label is its own box so a long name ends in an ellipsis (a flex
|
||||
container's bare text won't). */
|
||||
[data-module="propresenter-timers"] .tm-label {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
[data-module="propresenter-timers"] .tm-time {
|
||||
@@ -306,7 +313,9 @@
|
||||
[data-module="propresenter-timers"] .tm-menu-item .name { font-weight: 600; }
|
||||
[data-module="propresenter-timers"] .tm-menu-item:not(.on) .name { color: var(--muted); }
|
||||
|
||||
/* A small switch: off = hollow pill, on = filled with the running colour. */
|
||||
/* A small switch: off = hollow pill, on = filled with the accent. (The menu
|
||||
hangs off the tile's title bar, outside .tm-wrap, so the tile's own colour
|
||||
properties don't reach it — the shell's palette does.) */
|
||||
[data-module="propresenter-timers"] .tm-switch {
|
||||
flex: none;
|
||||
position: relative;
|
||||
@@ -329,8 +338,8 @@
|
||||
transition: transform 0.15s ease;
|
||||
}
|
||||
[data-module="propresenter-timers"] .tm-menu-item.on .tm-switch {
|
||||
border-color: var(--tm-ok);
|
||||
background: var(--tm-ok);
|
||||
border-color: var(--accent);
|
||||
background: var(--accent);
|
||||
}
|
||||
[data-module="propresenter-timers"] .tm-menu-item.on .tm-switch::after {
|
||||
transform: translateX(12px);
|
||||
|
||||
Reference in New Issue
Block a user