mirror of
https://github.com/rommapp/romm.git
synced 2026-12-02 18:18:47 +01:00
refactor(v2): give the list view's repeated parts one home
The redesign wrote the same compact sort control into three headers, the same compact row anatomy into four components, and a second rAF tween beside the one it had just added. - Extract ListSortMenu, which also settles the three different answers the headers gave when no column carries the current sort. - Move the compact row's flex/stack/facts rules to global.css, beside the list chrome already there. - Share one `tween` helper between the two animating composables. - Let useAnimatedNumber take an already-formatted value, so Stat and PageHeader stop repeating the same number-or-string branch. - Make the tick column a layout token instead of a constant, a CSS variable declared only for phones, and three literal fallbacks. - Read the expansion duration from the motion token it documents. - Drop the `compact` aliases that only renamed `smAndDown`. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016bZ7R3xC73MZu1vTNuatPK
This commit is contained in:
@@ -84,6 +84,7 @@ const NAME_OVERRIDES = {
|
||||
alphaStripWidth: "--r-alpha-strip-w",
|
||||
listRowHeight: "--r-list-row-h",
|
||||
listHeaderHeight: "--r-list-header-h",
|
||||
listSelectWidth: "--r-list-select-w",
|
||||
listRowDetailHeight: "--r-list-row-detail-h",
|
||||
},
|
||||
colorBrand: {
|
||||
|
||||
Reference in New Issue
Block a user