mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 22:21:10 +02:00
Two tightly coupled UX fixes on the homepage: 1. Switching scenes via SceneAppBar used to leave the carousel parked wherever it was before — the new scene's SceneHeader appeared off-screen to the left, and the user saw a seemingly stale row of cards until they manually scrolled. Now an $effect watches activeSceneId, tracks the last seen value, and smooth-scrolls the .fokus-track to left=0 on every real change (ignoring the initial hydration tick so we don't fight the carousel's own centering). 2. Scene rename had two concurrent paths: the SceneHeader contenteditable <h1> (live DOM) and a SceneRenameDialog modal opened from the scene-pill context menu (reads from the store). If a user was mid-edit inline and right-clicked Umbenennen, the dialog opened with the pre-edit value and on save clobbered the inline change. The modal is gone. The context-menu "Umbenennen" entry now switches to the target scene, scrolls the carousel to the header, and focuses the contenteditable after a 120ms tick so the scroll has time to start. Single source of truth, single code path. SceneRenameDialog.svelte + the sceneDialog state machine in +page.svelte are removed. ConfirmDialog (used for delete) is untouched. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| api | ||
| calc/packages/shared | ||
| calendar | ||
| cards | ||
| chat | ||
| citycorners | ||
| contacts | ||
| context | ||
| docs | ||
| food | ||
| guides | ||
| inventory | ||
| mana | ||
| manavoxel | ||
| memoro | ||
| moodlit | ||
| mukke | ||
| news | ||
| photos | ||
| picture | ||
| plants | ||
| presi | ||
| questions | ||
| quotes/packages/content | ||
| skilltree | ||
| storage | ||
| times | ||
| todo | ||
| traces | ||
| uload | ||