Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/frontend/src/widgets/sheet/SheetWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const SheetWidget: React.FC<SheetWidgetProps> = ({
<SheetContent
side={normalizedSide}
style={styles}
className={cn("flex flex-col p-0 gap-0 alert-animate-enter", isHorizontal && "h-full")}
className={cn("flex flex-col p-0 gap-0", isHorizontal && "h-full")}
data-sheet-side={normalizedSide}
onOpenAutoFocus={(e) => {
e.preventDefault();
Expand Down
57 changes: 8 additions & 49 deletions src/frontend/src/widgets/sheet/sheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -79,79 +79,38 @@
}
}

/* Sheet animations using Radix UI data-state attributes */
/* Right side (default) */
[data-radix-dialog-content][data-state="open"],
[data-radix-dialog-content][data-sheet-side="right"][data-state="open"] {
[data-sheet-side="right"][data-state="open"] {
animation: slideInFromRight 300ms ease-out;
}

[data-radix-dialog-content][data-state="closed"],
[data-radix-dialog-content][data-sheet-side="right"][data-state="closed"] {
[data-sheet-side="right"][data-state="closed"] {
animation: slideOutToRight 300ms ease-in;
}

/* Left side */
[data-radix-dialog-content][data-sheet-side="left"][data-state="open"] {
[data-sheet-side="left"][data-state="open"] {
animation: slideInFromLeft 300ms ease-out;
}

[data-radix-dialog-content][data-sheet-side="left"][data-state="closed"] {
[data-sheet-side="left"][data-state="closed"] {
animation: slideOutToLeft 300ms ease-in;
}

/* Top side */
[data-radix-dialog-content][data-sheet-side="top"][data-state="open"] {
[data-sheet-side="top"][data-state="open"] {
animation: slideInFromTop 300ms ease-out;
}

[data-radix-dialog-content][data-sheet-side="top"][data-state="closed"] {
[data-sheet-side="top"][data-state="closed"] {
animation: slideOutToTop 300ms ease-in;
}

/* Bottom side */
[data-radix-dialog-content][data-sheet-side="bottom"][data-state="open"] {
[data-sheet-side="bottom"][data-state="open"] {
animation: slideInFromBottom 300ms ease-out;
}

[data-radix-dialog-content][data-sheet-side="bottom"][data-state="closed"] {
[data-sheet-side="bottom"][data-state="closed"] {
animation: slideOutToBottom 300ms ease-in;
}

/* Sheet overlay animations */
[data-radix-dialog-overlay][data-state="open"] {
animation: fadeIn 300ms ease-out;
}

[data-radix-dialog-overlay][data-state="closed"] {
animation: fadeOut 300ms ease-in;
}

@keyframes fadeIn {
from {
opacity: 0;
}

to {
opacity: 1;
}
}

@keyframes fadeOut {
from {
opacity: 1;
}

to {
opacity: 0;
}
}

/* Sheet animation classes */
.sheet-animate-enter {
animation: slideInFromRight 300ms ease-out;
}

.sheet-animate-exit {
animation: slideOutToRight 300ms ease-in;
}
Loading