Skip to content

fix(ui): replace dialog slide animation with subtle fade/scale#1100

Merged
perber merged 1 commit into
mainfrom
worktree-fix+dialog-animation
Jun 2, 2026
Merged

fix(ui): replace dialog slide animation with subtle fade/scale#1100
perber merged 1 commit into
mainfrom
worktree-fix+dialog-animation

Conversation

@perber

@perber perber commented Jun 2, 2026

Copy link
Copy Markdown
Owner

Dialogs were flying in from the upper-left corner due to slide-in-from-left-1/2 and slide-in-from-top-[48%] classes, with no matching close animation. Removed all four directional slide classes from both dialog.tsx and alert-dialog.tsx; the remaining fade-in/out and zoom-in/out-95 utilities produce a centered, symmetric transition.

Copilot AI review requested due to automatic review settings June 2, 2026 12:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the LeafWiki UI dialog and alert-dialog components to remove directional slide-in/slide-out transitions and rely on the existing fade/zoom utilities, yielding a centered, symmetric open/close animation.

Changes:

  • Removed slide-in-from-* and slide-out-to-* state-based utility classes from dialog content animations.
  • Kept the existing animate-in/out, fade-in/out, and zoom-in/out-95 utilities to provide a subtle fade/scale transition.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
ui/leafwiki-ui/src/components/ui/dialog.tsx Removes directional slide animation classes from DialogContent while retaining fade/zoom transitions.
ui/leafwiki-ui/src/components/ui/alert-dialog.tsx Removes directional slide animation classes from AlertDialogContent while retaining fade/zoom transitions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Dialogs were flying in from the upper-left corner due to
slide-in-from-left-1/2 and slide-in-from-top-[48%] classes, with no
matching close animation. Removed all four directional slide classes
from both dialog.tsx and alert-dialog.tsx; the remaining fade-in/out
and zoom-in/out-95 utilities produce a centered, symmetric transition.
@perber
perber force-pushed the worktree-fix+dialog-animation branch from 76290eb to f9cd256 Compare June 2, 2026 12:42
@perber
perber merged commit 9baf467 into main Jun 2, 2026
8 checks passed
@perber
perber deleted the worktree-fix+dialog-animation branch June 2, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants