mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 06:05:24 +00:00
fix: lighter confirm prompt overlay to stop lag when it opens
This commit is contained in:
1 parent
f09865ed04
commit
d6c4ec01b5
2 files changed
+15
-5
No files matched your search
@@ -321,10 +321,8 @@ export function PanePrompt({
|
||||
return (
|
||||
<div
|
||||
className={cn(
|
||||
"motion-context-enter absolute inset-0 flex items-center justify-center overflow-y-auto p-4",
|
||||
layer === "connection"
|
||||
? "z-500 bg-canvas"
|
||||
: "z-50 bg-background/80 backdrop-blur-sm",
|
||||
"motion-fade-enter absolute inset-0 flex items-center justify-center overflow-y-auto p-4",
|
||||
layer === "connection" ? "z-500 bg-canvas" : "z-50 bg-background/85",
|
||||
)}
|
||||
style={
|
||||
layer === "connection" && backgroundColor
|
||||
@@ -340,7 +338,7 @@ export function PanePrompt({
|
||||
aria-modal="true"
|
||||
aria-labelledby={labelledBy ?? headingId}
|
||||
className={cn(
|
||||
"my-auto flex w-full max-w-sm flex-col border bg-popover shadow-xl",
|
||||
"motion-context-enter my-auto flex w-full max-w-sm flex-col border bg-popover shadow-xl",
|
||||
tone === "destructive" ? "border-destructive/40" : "border-border",
|
||||
className,
|
||||
)}
|
||||
|
||||
@@ -636,6 +636,11 @@ html.fs-xl {
|
||||
var(--motion-ease-enter) both;
|
||||
}
|
||||
|
||||
.motion-fade-enter {
|
||||
animation: motion-fade-enter var(--motion-duration-context)
|
||||
var(--motion-ease-enter) both;
|
||||
}
|
||||
|
||||
.motion-workspace-enter {
|
||||
animation: motion-workspace-enter var(--motion-duration-panel)
|
||||
var(--motion-ease-enter) both;
|
||||
@@ -723,6 +728,12 @@ html.fs-xl {
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes motion-fade-enter {
|
||||
from {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes motion-workspace-enter {
|
||||
from {
|
||||
opacity: 0;
|
||||
@@ -783,6 +794,7 @@ html.fs-xl {
|
||||
|
||||
.motion-panel-enter,
|
||||
.motion-context-enter,
|
||||
.motion-fade-enter,
|
||||
.motion-workspace-enter,
|
||||
.motion-workspace-layout,
|
||||
.motion-transfer-phase,
|
||||
|
||||
Reference in new issue
Block a user