- app.css 删除 8 个无引用 legacy 别名,新增 --id-1..5 身份灰阶实色阶 - 画布去紫罗兰二级 palette(tokens.css 删除,改用全站 token) - 画布/镜头台/智能体/omni/视频组件硬编码色全部归位 token - agentPalette 彩色身份色改为显影灰阶 --id 阶;修复 3 处相纸白底白字不可读 - WorkflowLibrary 试运行抽屉焦点还原(异步禁用触发键丢焦)修复 - e2e: fpages/import 色值断言对齐现行 token;新增 hel685 走查脚本 (1440/1024/390 截图 + 控制台错误 + 减动效 + 键盘焦点 + 对比度探针); pagination 空库自举;fpages 增加逐页控制台错误检查 Co-authored-by: multica-agent <github@multica.ai>
90 lines
1.7 KiB
Svelte
90 lines
1.7 KiB
Svelte
<script lang="ts">
|
|
import Spinner from '$lib/components/ui/Spinner.svelte';
|
|
|
|
interface Props {
|
|
title: string;
|
|
/** Live status line (e.g. latest agent.thinking message) — hidden when null/empty. */
|
|
status?: string | null;
|
|
/** Small secondary copy under the status line. */
|
|
hint?: string;
|
|
}
|
|
|
|
let { title, status = null, hint = '' }: Props = $props();
|
|
</script>
|
|
|
|
<div class="overlay" role="status" aria-live="polite">
|
|
<div class="inner">
|
|
<Spinner size="lg" />
|
|
<p class="title">{title}</p>
|
|
{#if status}
|
|
<p class="status">{status}</p>
|
|
{/if}
|
|
{#if hint}
|
|
<p class="hint">{hint}</p>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
|
|
<style>
|
|
.overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 30;
|
|
background: var(--overlay);
|
|
backdrop-filter: blur(2px);
|
|
border-radius: var(--radius-md);
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: center;
|
|
cursor: wait;
|
|
user-select: none;
|
|
animation: overlay-fade 0.2s ease-out;
|
|
}
|
|
.inner {
|
|
position: sticky;
|
|
top: 28%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 28px 32px;
|
|
max-width: 460px;
|
|
text-align: center;
|
|
}
|
|
.title {
|
|
margin: 4px 0 0;
|
|
font-family: var(--font-display);
|
|
font-size: 17px;
|
|
font-weight: 650;
|
|
letter-spacing: -0.01em;
|
|
color: var(--text-primary);
|
|
}
|
|
.status {
|
|
margin: 0;
|
|
font-family: var(--font-mono);
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
color: var(--text-secondary);
|
|
word-break: break-word;
|
|
}
|
|
.hint {
|
|
margin: 0;
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
color: var(--text-muted);
|
|
}
|
|
@keyframes overlay-fade {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.overlay {
|
|
animation: none;
|
|
}
|
|
}
|
|
</style>
|