feat(flight-plan): resizable plan window with a corner grip (#508)#509
Merged
Conversation
The Flight Plan modal already drags from its title bar; add a bottom-right resize grip so long routes get a taller window. - A `.resize-handle.corner-se` grip on the `.modal.wide` box; mouse + touch drag resizes it (min 360×200, clamped to the viewport). Dragging the grip stops propagation so it never starts a title-bar move. - Size persists to `navaid.fpSize` and is restored on reopen. An explicit size drops the default 92vw/84vh caps so the window can grow past them. - Reuses the corner-se handle styling designed for the pinned-plan box. - Tests: grip resizes + persists, and a stored size restores on reopen. Fixes #508 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
🚀 Preview deployed
Commit: |
Generalize the single bottom-right grip to four corner grips. Corners that move the top/left edge (nw/ne/sw) re-pin the box left/top so the opposite edge stays put while dragging, matching standard window-resize behaviour. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.resize-handle.corner-segrip to the Flight Plan modal. Mouse + touch drag resizes the window (min 360×200, clamped to viewport).navaid.fpSizeand restores on reopen; an explicit size lifts the default 92vw/84vh caps so the window can grow past them.stopPropagations so it never triggers the existing title-bar drag-to-move.corner-sehandle styling first designed for the pinned-plan box in Flight plan pin-to-map + PNG export #338.Test plan
tests/fp-resize.spec.js— grip resizes + persists; stored size restored on reopenFixes #508