Skip to content

fix(desktop): right-align the sidebar time-filter menu so it can't clip#4196

Merged
esengine merged 1 commit into
main-v2from
fix/sidebar-time-filter-menu
Jun 12, 2026
Merged

fix(desktop): right-align the sidebar time-filter menu so it can't clip#4196
esengine merged 1 commit into
main-v2from
fix/sidebar-time-filter-menu

Conversation

@esengine

Copy link
Copy Markdown
Owner

Follow-up to #4150 (the codex bot flagged the same thing).

The time-filter dropdown was left: 0 inside the overflow: hidden sidebar; the trigger is in the right-aligned header, so on a narrow sidebar — and with the longer zh labels — the menu ran past the right edge and clipped. Right-align it so it opens leftward into the sidebar.

Also folds the duplicated Latest-10 / Latest-20 cutoff IIFEs into one helper, behavior-identical (same Set-dedup, sort, short-list fallback).

Follow-up to #4150. The dropdown was positioned `left: 0` inside the
`overflow: hidden` sidebar; the trigger sits in the right-aligned header, so on
a narrow sidebar — and with the longer zh labels — the menu ran past the right
edge and got clipped. Right-align it so it opens leftward into the sidebar.

Also fold the duplicated Latest-10 / Latest-20 cutoff IIFEs into one helper;
behavior is identical (same Set-dedup, sort, and short-list fallback).
@esengine esengine requested a review from SivanCola as a code owner June 12, 2026 13:56
@github-actions github-actions Bot added desktop Wails desktop app (desktop/**) v2 Go rewrite (1.x) — main-v2 branch, active development labels Jun 12, 2026
@esengine esengine merged commit 8b500db into main-v2 Jun 12, 2026
14 checks passed
@esengine esengine deleted the fix/sidebar-time-filter-menu branch June 12, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

desktop Wails desktop app (desktop/**) v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant