fix: refine settings dialog layout

This commit is contained in:
2026-07-03 01:03:34 -07:00
parent b5e2aa6df1
commit d2404616bc
6 changed files with 76 additions and 11 deletions

View File

@@ -155,8 +155,13 @@ The project Dialog adapter must:
- Override Kumo minimum width so mobile dialogs stay inside `100vw`.
- Keep `transform: none` and `translate: 0 0` on `.teatea-dialog`; use
opacity/scale-only motion if animation is needed.
- Kumo may inject `-translate-x-1/2 -translate-y-1/2` before project classes in the
runtime class list. Do not rely only on Tailwind class order or a plain CSS rule;
the Dialog adapter should enforce `style={{ transform: "none", translate: "0 0" }}`
or an equally strong adapter-owned override.
- Browser validation should assert the panel center is within 2px of the viewport center
on desktop and mobile.
on desktop and mobile and should inspect computed `translate` when a dialog is visibly
offset.
### Static Module Data Contract