feat: snap floating add button to edge
ci / gitleaks (push) Successful in 7s
ci / docker (push) Successful in 3m37s

This commit is contained in:
2026-09-11 17:07:27 +08:00
parent 78d178be77
commit e5cede1b98
5 changed files with 56 additions and 6 deletions
+4
View File
@@ -1019,8 +1019,12 @@ describe('unified floating add interaction', () => {
expect(floatingAdd).toContain('class="unified-fab"')
expect(floatingAdd).toContain('@pointerdown="startDrag"')
expect(floatingAdd).toContain('@pointermove="moveDrag"')
expect(floatingAdd).toContain("position.value = snapFabPosition(")
expect(floatingAdd).toContain('snapFabToCurrentViewport')
expect(floatingAdd).toContain("window.addEventListener('resize', snapFabToCurrentViewport)")
expect(floatingAdd).toContain("emit('activate',")
expect(css).toContain('.unified-fab.dragging')
expect(css).toContain('.unified-fab.snapping')
expect(countdownPanel).toContain('<Transition name="countdown-compose">')
expect(css).toContain('.countdown-compose-enter-active')
expect(css).toContain('@media(max-width:930px){.unified-fab{bottom:calc(82px + env(safe-area-inset-bottom))}')