Skip to content

Keep the narrow toolbar and the menu usable on short boards - #2

Merged
Inchill merged 1 commit into
mainfrom
fix/narrow-toolbar-and-menu
Oct 22, 2026
Merged

Inchill merged 1 commit into
mainfrom
fix/narrow-toolbar-and-menu

Conversation

@Inchill

@Inchill Inchill commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

Two layout problems on narrow, short boards, found while using the board on a phone.

Toolbar scrolled vertically

On narrow boards (@container rwb (max-width: 720px)) the toolbar gets overflow-x: auto so the tools can scroll sideways, which also makes it scrollable vertically. Its tooltips are positioned below the buttons (.rwb-tip-bottom) and made the content 28px taller than the toolbar, so a vertical swipe moved the buttons out of view.

  • Tooltips inside the toolbar are hidden in the narrow layout; the toolbar clipped them there anyway, and they do not show on touch.
  • The toolbar gets overflow-y: hidden, overscroll-behavior-x: contain and touch-action: pan-x.

Menu ran under the toolbar

.rwb-menu had no height limit. On a short board its last items (Clear canvas) went past the bottom edge and, on narrow boards, under the toolbar, which sits above it.

  • .rwb-menu gets max-height: calc(100cqh - 72px) (it opens 60px below the top edge; the root is already a size container) and scrolls when it does not fit.
  • On narrow boards .rwb-top-left goes from z-index: 3 to 4, so an open menu is drawn above the toolbar.

Wide boards are unchanged apart from the menu's height limit, which only matters on boards shorter than the menu.

Release

Bumps the version to 1.1.1 with a changelog entry.

Checks

  • format:check, lint, typecheck, test and both builds pass.
  • On the full-screen board at 390 × 400 and 390 × 520: the toolbar's scroll height equals its height (44px, was 72px) and it still scrolls sideways; the menu stays inside the board, scrolls when needed, and Clear canvas is reachable above the toolbar.

On narrow boards the bottom toolbar scrolls sideways. Its tooltips hung below
the buttons, so it could be scrolled up and down as well and the buttons slid
out of view. The toolbar now hides its tooltips there and scrolls sideways only.

The main menu had no height limit, so on a short board its last items ran under
the bottom toolbar. It now scrolls within the board, and on narrow boards it
opens above the toolbar.
@Inchill
Inchill merged commit a01dd21 into main Oct 22, 2026
1 check passed
@Inchill
Inchill deleted the fix/narrow-toolbar-and-menu branch October 22, 2026 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant