Skip to content

fix(desktop): keep Linux HTML previews inside the browser panel - #4033

Merged
kev1n77 merged 1 commit into
openBitFun:mainfrom
kev1n77:fix/linux-html-preview-layout
Nov 23, 2026
Merged

kev1n77 merged 1 commit into
openBitFun:mainfrom
kev1n77:fix/linux-html-preview-layout

Conversation

@kev1n77

@kev1n77 kev1n77 commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Place Linux browser child WebViews in a GTK overlay that uses the panel's coordinates and dimensions.
  • Apply updated bounds while the preview is hidden so it reopens at the correct size. Keep the main WebView at its existing size.
  • Extend the native HTML preview fixture to check the viewport before and after a hidden resize.

Type and Areas

Desktop/Tauri bug fix and native regression coverage.

Motivation / Impact

GTK previously stacked the browser beneath the main WebView. In the local reproduction, a preview requested at 480 × 320 received a 1390 × 786 viewport and the page appeared below the sidebar.

Verification

  • cargo build --locked -p openbitfun-desktop passed on Linux.
  • node tests/e2e/scripts/run-html-preview.mjs passed on Wayland and XWayland. Native GTK allocations confirmed the requested positions and sizes, and the test confirmed that the main viewport retained its size.
  • The previous binary reproduced the oversized viewport. A separate session-isolation run timed out selecting a conversation before the browser opened. Remote scenarios were outside this verification.

Reviewer Notes

AI-assisted and lightly tested with the focused native regression above.

Checklist

  • The PR contains only the intended fix and regression coverage.
  • Verification and its limits are recorded above.
  • Existing user-facing strings and locales cover this change.

@kev1n77
kev1n77 merged commit 8c2c258 into openBitFun:main Nov 23, 2026
12 checks passed
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