fix: 修复换火山账号导致素材库操作失败问题
This commit is contained in:
@@ -431,11 +431,12 @@ export function ToastLike({ notice }: { notice: NonNullable<Notice> }) {
|
||||
return () => cancelAnimationFrame(raf);
|
||||
}, []);
|
||||
const Icon = notice.type === "error" ? AlertCircle : notice.type === "info" ? Info : Check;
|
||||
return (
|
||||
return createPortal(
|
||||
<div className={`toast${show ? " show" : ""}`} role="status" aria-live="polite">
|
||||
<div className="ic-t"><Icon size={13} /></div>
|
||||
<div className="txt">{notice.text}<span className="mono">[ {notice.type.toUpperCase()} ]</span></div>
|
||||
</div>
|
||||
</div>,
|
||||
document.body,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -1728,7 +1728,7 @@ table.t tbody tr:hover { background: var(--black-alpha-4); }
|
||||
box-shadow: var(--shadow-floating);
|
||||
transform: translateX(420px);
|
||||
transition: transform var(--t-slow);
|
||||
z-index: 1000;
|
||||
z-index: 10000;
|
||||
min-width: 260px;
|
||||
}
|
||||
.toast.show { transform: translateX(0); }
|
||||
|
||||
Reference in New Issue
Block a user