Repository navigation
Rework the sidebar so mod pages fit - #1322
Conversation
| } | ||
| } | ||
| NotificationBell() | ||
| Row(horizontalArrangement = Arrangement.spacedBy(14.dp), verticalAlignment = Alignment.CenterVertically) { |
There was a problem hiding this comment.
Long player names leave too little width for both icons, so the bell gets clipped. Reserve the icon width and constrain/ellipsize the name.
| val title = it.title | ||
|
|
||
| NavigationSection(it.title) { | ||
| NavigationSection(title, collapsed = SidebarCollapse.isCollapsed(title), onToggle = { SidebarCollapse.toggle(title) }) { |
There was a problem hiding this comment.
Collapse state is keyed by the translated title, so groups with the same title share it. Key it by PageGroup.id.
| Text( | ||
| translated("oneconfig.sidebar.more", "+%s more", hidden), | ||
| modifier = Modifier.padding(start = 26.dp, top = 6.dp) | ||
| .onClick(source) { scope.launch { scroll.animateScrollTo(scroll.maxValue) } } |
There was a problem hiding this comment.
"+N more" still animates the scroll with Reduced Motion on. Use scrollTo in that mode.
| val route = pageRoute(page) | ||
| NavigationEntry(page.icon, page.title.resolve(), route, entry.isOn(route)) { | ||
| expanded = false | ||
| shell.navigation.navigate(route) |
There was a problem hiding this comment.
Selecting Changelog while already on it no longer clears its search: navigate returns early for the current route. Clear the search here the same way the sidebar does for the current route.
Wyvest
left a comment
There was a problem hiding this comment.
See the inline comments above. Also needs a rebase: merge conflict in ThemeConfig.java.
09f2f0e to
88d3266
Compare
88d3266 to
f0d8300
Compare
f0d8300 to
534097e
Compare
534097e to
305a990
Compare
305a990 to
eda24c1
Compare
eda24c1 to
e21eefa
Compare
e21eefa to
2e69d4d
Compare
Sidebar sections fold, the page list scrolls with a "+N more" hint, and Edit HUD always sits at the bottom.
Changelog and Credits move to an info button next to the bell, and the "Sidebar Buttons at Bottom" option is gone.
Tested on 26.3 only.