mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-02 12:59:09 +00:00
refactor(countdown): drop indirection left over from the row sections
renderRow had a single call site and recomputed activeEntryId, which the caller had already derived to pick the scroll anchor. Inlining it brings the row back to the shape it had before the sections were introduced. The section wrapper no longer carries flex-grow. The list is sized by its content and never fills the column, so there is no free space to distribute and the growth factor resolved to nothing. Sections stay flex containers though, otherwise the row margins collapse and the rows of a section sit closer together than the sections themselves. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GjX7D56AW8cL3FXjvtnjtL
This commit is contained in:
@@ -103,12 +103,12 @@ $item-height: 3.5rem;
|
||||
padding-bottom: max(8rem, calc(5rem + env(safe-area-inset-bottom)));
|
||||
}
|
||||
|
||||
/* a subscribed group and its subscribed events, bounds the sticky header to its own section */
|
||||
/* a subscribed group and its subscribed events, bounds the sticky header to its own section.
|
||||
flex rather than block so that the row margins do not collapse, keeping the spacing between
|
||||
rows of a section equal to the spacing between sections */
|
||||
.sub-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
/* flex-grow is set inline from the row count, so that the rows keep the share they had in the list */
|
||||
flex: 1 1 0;
|
||||
}
|
||||
|
||||
/* scoped to the section, the select view shows the same cards in a flat list */
|
||||
|
||||
Reference in New Issue
Block a user