Skip to content

fix(browser): match official's device toolbar, tab strip, find bar, and preview tab - #354

Merged
Hona merged 1 commit into
devfrom
ws6/browser-device-tabs-find
Nov 21, 2026
Merged

Hona merged 1 commit into
devfrom
ws6/browser-device-tabs-find

Conversation

@Hona

@Hona Hona commented Nov 21, 2026

Copy link
Copy Markdown
Member

Summary

Visual parity with official origin/dev (b9a60d9d078d87bfb90f039e431090508f88ac02) for the browser device toolbar, tab strip titles & favicons, Find in page active ordinal, and preview tab chrome — visual only, no behaviour change to security prompts or preview isolation.

  • Device toolbar & Responsive resize handles (apps/desktop/src/plugin_host/native/browser/viewport.rs, plugins/browser/{device,panel}.luau):
    • Renders official's 14 pt right and bottom gutters (bar.css:195-282) with interactive width (3×24), height (24×3), and L-shaped corner (7×7) ViewportHandles in Responsive mode (786×604 instead of 800×619).
    • Matches official's preset menu (224×227 pt, bg-base, radius = 10, 30 pt rows, borderless, bar.css:337-363) and shows "Responsive" / scale triggers with pressed surface-press fill while open.
  • Tab strip titles & favicons (features/panels/src/view/strip.rs:276, plugins/browser/{init,panel,history,app}.luau, apps/browser-engine/src/favicon.rs:108-115):
    • Matches TAB_UI font metrics (tracking = -0.04, tabular = true) on browser tab labels and rounds tab_natural title width up (ceil()) so "API Reference", "Permission Test", "127.0.0.1:4929", and "Workspace Preview" fit untruncated.
    • Allows data:image/svg+xml in apps/browser-engine/src/favicon.rs (rasterized inside Chromium via download_image into a bounded 32×32 PNG data URL) and carries optional Visit.icon / Suggestion.icon into New-tab Recent rows and omnibox suggestions (panel.luau:425, 582).
  • Find in page "1 of 3" (apps/browser-engine/src/find.rs, crates/browser-pane/src/find.rs):
    • Preserves previous count/active match ordinal in TabFindHandler when CEF reports -1 ("unchanged") and normalizes active = 1 when total > 0 on final_update, matching official find-bar.tsx ("1 of 3" instead of "0 of 3").
  • Preview tab chrome (plugins/browser/{init,panel}.luau):
    • Keeps standard "globe" tab icon and "outline-sliders" site button (removes "folder" overrides and "Workspace file" pill) and renders file:/// in text-faint with the file path in text-chrome (bar.css:89-105).

Pixel Check

  • Reference suite: harness/reference/browser-parity.ts (browser-device-toolbar, browser-two-tabs, browser-find-bar, browser-preview-tab, browser-error-unreachable, light & dark, 1x 1280×800) + local apps/browser-engine build — exact before/after numbers will be appended as soon as the capture lands.

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

PR test build retired — merged into dev. Install or auto-update OpenCode (Rune) from https://anoma.ly/release/opencode/desktop-rune/dev/macos-arm64-dmg.

@Hona
Hona force-pushed the ws6/browser-device-tabs-find branch from 42d72fa to 1c511cd Compare November 21, 2026 03:34
@Hona
Hona merged commit 7bb660b into dev Nov 21, 2026
6 checks passed
@Hona
Hona deleted the ws6/browser-device-tabs-find branch November 21, 2026 03:41
Hona added a commit that referenced this pull request Nov 21, 2026
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