feat: snap floating add button to edge
This commit is contained in:
@@ -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))}')
|
||||
|
||||
Reference in New Issue
Block a user