Skip to content

fix(web): resize the floating preview from any edge - #80

Merged
AadiJo merged 1 commit into
mainfrom
resize-floating-preview
Sep 7, 2026
Merged

fix(web): resize the floating preview from any edge#80
AadiJo merged 1 commit into
mainfrom
resize-floating-preview

Conversation

@AadiJo

@AadiJo AadiJo commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

The floating browser preview could only be resized from its bottom-right corner, where it often ran out of room against the window edge. Its fixed 320x200 frame also letterboxed previews with a different viewport ratio.

This ports pingdotgg/t3code#10467. Every edge and corner now resizes the preview while preserving its source aspect ratio and anchoring the opposite edge. The frame derives from a stored width on each layout pass, so temporary window constraints do not overwrite the chosen size.

CadSense's overlay z-index stack and independently sized CAD preview remain intact.

Tests:

  • pnpm --filter @cadsense/web test
  • pnpm --filter @cadsense/web typecheck
  • targeted lint and formatting checks

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@AadiJo
AadiJo force-pushed the resize-floating-preview branch from d630a6e to 9976929 Compare September 7, 2026 16:02
@AadiJo
AadiJo merged commit 28b160d into main Sep 7, 2026
11 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