Enhance UI components for map editing and school creation. Update styles for improved layout and responsiveness, including adjustments to dialog positioning and flex properties. Introduce new localization strings for better user guidance in both English and Russian. Refactor code structure for clarity and maintainability, ensuring a more intuitive user experience.
This commit is contained in:
@@ -130,6 +130,9 @@ say so explicitly in the change description.
|
||||
- **`<dialog>`'s `close` event is not delivered by every engine** (Chromium 148 fires only
|
||||
`toggle`). `ui/modal.ts` resolves its promise explicitly on every exit for that reason — never go
|
||||
back to awaiting the event, or a dialog will silently freeze the screen that awaited it.
|
||||
- **A modal `<dialog>` is absolutely positioned with `inset: 0`,** so `height: auto` stretches it
|
||||
to its `max-height` instead of shrink-wrapping. `.dialog--screen` uses `height: fit-content` for
|
||||
that reason — the map editor sized itself to 800px around a two-room school before it did.
|
||||
- **Game dates are UTC on the wire and UTC when formatted.** A `DateTime` bound from configuration
|
||||
arrives as `Kind=Unspecified`, serializes without a `Z`, and the browser then reads it in its own
|
||||
time zone — `SimulationOptions.DefaultStartDate` forces the kind for exactly that reason.
|
||||
|
||||
Reference in New Issue
Block a user