diff --git a/frontend/src/App.css b/frontend/src/App.css index 35a4df1..36e9abb 100644 --- a/frontend/src/App.css +++ b/frontend/src/App.css @@ -62,44 +62,9 @@ /* ---------- 任务列表 ---------- */ .task-card { - position: relative; overflow: hidden; } -/* 手动刷新时的顶部进度条:不改变表格布局,也避免旧数据看起来像「残影」 */ -.refresh-bar { - position: absolute; - z-index: 2; - top: 0; - right: 0; - left: 0; - height: 2px; - overflow: hidden; - background-color: var(--su-color-primary-soft); - pointer-events: none; -} - -.refresh-bar::after { - content: ''; - position: absolute; - top: 0; - bottom: 0; - left: 0; - width: 40%; - background-color: var(--su-color-primary); - animation: refresh-slide 1.1s ease-in-out infinite; -} - -@keyframes refresh-slide { - from { - transform: translateX(-100%); - } - - to { - transform: translateX(250%); - } -} - /* 表格嵌在卡片里:去掉自身描边与圆角,避免「卡片套卡片」 */ .task-table { border: 0; @@ -134,12 +99,6 @@ min-width: 140px; } -/* 「刷新」和「同步中...」字数不同,固定宽度避免刷新时工具栏左右跳动 */ -.refresh-button { - min-width: 68px; - justify-content: center; -} - .task-name-cell { display: flex; min-width: 0; @@ -246,6 +205,21 @@ overflow-y: auto; } +/* 弹窗内容仍可用滚轮 / 触控板滚动,但不显示右侧滚动条 */ +.task-editor-modal > div, +.directory-picker-modal > div, +.directory-picker-body { + scrollbar-width: none; + -ms-overflow-style: none; +} + +.task-editor-modal > div::-webkit-scrollbar, +.directory-picker-modal > div::-webkit-scrollbar, +.directory-picker-body::-webkit-scrollbar { + width: 0; + height: 0; +} + .task-editor-modal > header, .task-editor-modal > footer { flex: none; diff --git a/frontend/src/pages/TaskDashboard.tsx b/frontend/src/pages/TaskDashboard.tsx index 66875c8..76e3424 100644 --- a/frontend/src/pages/TaskDashboard.tsx +++ b/frontend/src/pages/TaskDashboard.tsx @@ -69,8 +69,8 @@ const ACTION_TYPE_OPTIONS = [ const TABLE_COLUMNS: TableColumn[] = [ { key: 'name', title: '名称 / 任务标识', width: 250 }, - { key: 'schedule', title: '调度周期', width: 210 }, { key: 'timezone', title: '时区', width: 120 }, + { key: 'schedule', title: '调度周期', width: 210 }, { key: 'status', title: '状态', width: 110 }, { key: 'timeout', title: '超时', width: 90 }, { key: 'actions', title: '操作', align: 'right', width: 260 }, @@ -378,9 +378,6 @@ export function TaskDashboard() { - {refreshing ? ( -
- ) : null}
) : null} void refreshAll()} disabled={refreshing} > - {refreshing ? '同步中...' : '刷新'} + 刷新