fix(panel): enlarge drag surface to the header block
The 18x28 grip was too small. Wrap the grip, icon, title and language subtitle in a 44 pt-high native performDrag area; the SwiftUI content is hit-testing-disabled so the whole left header block starts a window drag. Make the grip a visible 24x32 capsule with an open-hand cursor and a localized tooltip. Verified: make verify green; a synthetic drag starting on the title area moved the panel by the full delta, and the panel screenshot confirms the larger grip and 17 pt translation text.
This commit is contained in:
1 parent
40733473c5
commit
f466e6dd1c
5 files changed
+26
-19
No files matched your search
@@ -554,7 +554,7 @@ stateDiagram-v2
|
||||
| Onboarding | `NSWindow` (not a SwiftUI `Window` scene) | Ollama reachable + version, Hy-MT3 installed, target language, optional Accessibility for Replace; each with a fix button |
|
||||
| Diagnostics | Window from the menu | Server version, model digests, last 50 timings and error kinds; copy as text; no text or translations |
|
||||
|
||||
Panel keyboard: **Esc** close, **⌘C** copy translation, **⌘↩** Replace, **⌘R** retry, **⌘,** Settings. The panel becomes key only when clicked; the source app keeps focus until then. The header has a drag grip; moving the panel keeps its position while it stays open, and a newly shown panel is placed near the cursor (DeepL-like transient position). The translation text size is a Settings value.
|
||||
Panel keyboard: **Esc** close, **⌘C** copy translation, **⌘↩** Replace, **⌘R** retry, **⌘,** Settings. The panel becomes key only when clicked; the source app keeps focus until then. The left header block and its drag grip move the panel; moving it keeps its position while it stays open, and a newly shown panel is placed near the cursor (DeepL-like transient position). The translation text size is a Settings value.
|
||||
|
||||
Accessibility: every control has an `accessibilityLabel`; the panel exposes source and translation as read-only text elements; full keyboard navigation; respects Reduce Motion and Increase Contrast.
|
||||
|
||||
|
||||
Reference in new issue
Block a user