Repository navigation
feat(ui): smooth entrance/exit transitions and drag overlay alignment for dock & toolbar - #1809
Merged
eythaann merged 9 commits intoSep 15, 2026
Conversation
- Taskbar (@seelen/weg): smooth entrance/exit transitions and FLIP reorder - Taskbar (@seelen/weg): scale transition for notification and instance badges - Toolbar (@seelen/fancy-toolbar): scale transition for badges and FLIP reordering - CSS animation tokens and reduced-motion accessibility support
Owner
|
I completely forgot about svelte's features for adding transitions, nice addition. I'm going to polish it after merging. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📋 Summary
This PR adds smooth entrance and exit transitions for applications in the dock (
@seelen/weg), smooth badge scaling, toolbar reordering transitions, and resolves a layout misalignment issue during drag-and-drop overlay rendering.🔍 Problems Addressed
animate:flipon disappearing items triggered Svelte's internalnodes.fix(), forcingposition: absoluteand collapsing the flex slot abruptly before transitions could run.(2)or active running signs, the@dnd-kit<DragOverlay>child lacked the.weg-item-drag-containerwrapper. Hover magnification caused the overlay block to expand, shifting the open indicator by+7.5pxand causing badges to detach from the icon into empty space.🚀 Changes Made
1. Dock (
@seelen/weg)dockItemEnteranddockItemExittransitions with proportional scaling and symmetrical margin collapse (halfGap = gap / 2).|globalmodifier to ensure transitions reliably trigger across all Svelte 5 reactive contexts.isInitialLoadcheck (600ms guard) to avoid animating existing pinned/open applications on cold start.<DragOverlay>content in<div class="weg-item-drag-container is-overlay">.[data-dnd-overlay]and strictwidth: fit-content; height: fit-contenton.weg-item-overlay.+7.50pxto strictly0.00px.scaletransition (180mscubicOut) for notification and instance counter badges.2. Fancy Toolbar (
@seelen/fancy-toolbar)animate:flipfor smooth rearrangement of items during drag-and-drop reordering.3. Accessibility & System Support
--weg-animation-duration,--weg-animation-easing,--ft-animation-duration).@media (prefers-reduced-motion: reduce)support to respect OS accessibility preferences.🧪 Verification & Testing
npm run build:ui— All 22 Svelte apps and 2 React apps compile cleanly.npm run type-check— Passed with 0 errors and 0 warnings (tsc, svelte-check, deno check).deno fmt— Code formatted according to repository standards.1.mp4