Skip to content

feat(harmonyos): place overlay sheets from fold geometry - #2376

Merged
wgqqqqq merged 2 commits into
GCWing:mainfrom
wgqqqqq:feat/harmonyos-app-i18n
Aug 19, 2026
Merged

feat(harmonyos): place overlay sheets from fold geometry#2376
wgqqqqq merged 2 commits into
GCWing:mainfrom
wgqqqqq:feat/harmonyos-app-i18n

Conversation

@wgqqqqq

@wgqqqqq wgqqqqq commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Overlay sheets (settings, connect, session details, remote view settings) now share one crease-aware placement policy, so they stay in a physical pane instead of centering across a hinge.
  • Mate X7 reports the book hinge as a wide-flat rect; classification keeps that rect on one axis so hover does not open a short bottom sheet. FoldOperate uses the kind height, illegal creases no longer apply the tablet floor, and RTL sizes the trailing pane.
  • Settings subpages and local-model drafts survive fold rebuilds. The settings home groups language and model under General.

Test plan

  • hvigorw ... assembleHap and LocalTest (402) on HarmonyOS
  • SettingsPlacementPolicy / ConversationLayoutPolicy / AdaptiveSheetOptions line and branch coverage at 100%
  • Mate X7 unfolded: settings SheetPage [1235,122][2210,2416], left edge on the crease, copy shows 通用 / 语言 / 模型
  • Mate X7 hover and folded cover
  • Open settings, then change fold posture (T4 preferType continuity)
  • MatePad Pro crease-free wide layout

wgqqqqq and others added 2 commits August 19, 2026 14:08
Settings and the other overlay sheets now share a crease-aware policy so
they stay in one physical pane instead of centering across a hinge.
Settings subpages and local-model drafts survive fold rebuilds, and the
home list groups language and model under General.

Co-authored-by: Cursor <cursoragent@cursor.com>
Mate X7 reports the book hinge as a wide-flat rect. Treating that
rect as both vertical and horizontal made hover open a short bottom
sheet instead of the trailing pane. Sheet options now use the kind
height, illegal creases no longer apply the tablet floor, and RTL
sizes the leading pane.

Co-authored-by: Cursor <cursoragent@cursor.com>
@wgqqqqq
wgqqqqq merged commit 2ef884e into GCWing:main Aug 19, 2026
6 of 8 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