Skip to content

Rework the sidebar so mod pages fit - #1322

Merged
Deftu merged 3 commits into
v1from
feat/sidebar-cleanup
Nov 10, 2026
Merged

Deftu merged 3 commits into
v1from
feat/sidebar-cleanup

Conversation

@Deftu

@Deftu Deftu commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

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.

}
}
NotificationBell()
Row(horizontalArrangement = Arrangement.spacedBy(14.dp), verticalAlignment = Alignment.CenterVertically) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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) }) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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) } }

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"+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)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 Wyvest left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the inline comments above. Also needs a rebase: merge conflict in ThemeConfig.java.

@Deftu
Deftu force-pushed the feat/sidebar-cleanup branch 2 times, most recently from 09f2f0e to 88d3266 Compare November 10, 2026 06:12
@Deftu
Deftu force-pushed the feat/sidebar-cleanup branch from 88d3266 to f0d8300 Compare November 10, 2026 06:41
@Deftu
Deftu force-pushed the feat/sidebar-cleanup branch from f0d8300 to 534097e Compare November 10, 2026 07:20
@Wyvest
Wyvest force-pushed the feat/sidebar-cleanup branch from 534097e to 305a990 Compare November 10, 2026 07:21
@Deftu
Deftu force-pushed the feat/sidebar-cleanup branch from 305a990 to eda24c1 Compare November 10, 2026 07:27
Base automatically changed from feat/theme-tints-palettes to v1 November 10, 2026 07:34
@Deftu
Deftu force-pushed the feat/sidebar-cleanup branch from eda24c1 to e21eefa Compare November 10, 2026 07:34
@Deftu
Deftu force-pushed the feat/sidebar-cleanup branch from e21eefa to 2e69d4d Compare November 10, 2026 07:35
@Deftu
Deftu merged commit 69d3a40 into v1 Nov 10, 2026
12 checks passed
@Deftu
Deftu deleted the feat/sidebar-cleanup branch November 10, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants