Add files via upload

This commit is contained in:
公明
2026-08-13 22:15:08 +08:00
committed by GitHub
parent eb6bab574f
commit 7c45011074
3 changed files with 165 additions and 40 deletions
+25 -15
View File
@@ -2001,7 +2001,7 @@ html[data-theme="dark"] .c2-file-upload-hint {
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
scrollbar-width: thin; scrollbar-width: thin;
scrollbar-color: color-mix(in srgb, var(--c2-text-dim) 70%, transparent) transparent; scrollbar-color: transparent transparent;
} }
.c2-tasks-table tr { .c2-tasks-table tr {
@@ -2010,24 +2010,29 @@ html[data-theme="dark"] .c2-file-upload-hint {
table-layout: fixed; table-layout: fixed;
} }
.c2-tasks-table tbody:hover {
scrollbar-color: color-mix(in srgb, var(--c2-text-dim) 70%, transparent) transparent;
}
.c2-tasks-table tbody::-webkit-scrollbar { .c2-tasks-table tbody::-webkit-scrollbar {
width: 8px; width: 4px;
} }
.c2-tasks-table tbody::-webkit-scrollbar-track { .c2-tasks-table tbody::-webkit-scrollbar-track {
background: var(--c2-surface); background: transparent;
} }
.c2-tasks-table tbody::-webkit-scrollbar-thumb { .c2-tasks-table tbody::-webkit-scrollbar-thumb {
border: 2px solid transparent;
border-radius: 999px; border-radius: 999px;
background: color-mix(in srgb, var(--c2-text-dim) 70%, transparent); background: transparent;
background-clip: content-box;
} }
.c2-tasks-table tbody::-webkit-scrollbar-thumb:hover { .c2-tasks-table tbody:hover::-webkit-scrollbar-thumb {
background: color-mix(in srgb, var(--c2-text-dim) 70%, transparent);
}
.c2-tasks-table tbody:hover::-webkit-scrollbar-thumb:hover {
background: color-mix(in srgb, var(--c2-text-muted) 78%, transparent); background: color-mix(in srgb, var(--c2-text-muted) 78%, transparent);
background-clip: content-box;
} }
.c2-tasks-table thead th { .c2-tasks-table thead th {
@@ -2861,6 +2866,10 @@ html[data-theme="dark"] .c2-file-upload-hint {
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
scrollbar-width: thin; scrollbar-width: thin;
scrollbar-color: transparent transparent;
}
.c2-events-table tbody:hover {
scrollbar-color: color-mix(in srgb, var(--c2-text-dim) 70%, transparent) transparent; scrollbar-color: color-mix(in srgb, var(--c2-text-dim) 70%, transparent) transparent;
} }
@@ -2871,23 +2880,24 @@ html[data-theme="dark"] .c2-file-upload-hint {
} }
.c2-events-table tbody::-webkit-scrollbar { .c2-events-table tbody::-webkit-scrollbar {
width: 8px; width: 4px;
} }
.c2-events-table tbody::-webkit-scrollbar-track { .c2-events-table tbody::-webkit-scrollbar-track {
background: var(--c2-surface); background: transparent;
} }
.c2-events-table tbody::-webkit-scrollbar-thumb { .c2-events-table tbody::-webkit-scrollbar-thumb {
border: 2px solid transparent;
border-radius: 999px; border-radius: 999px;
background: color-mix(in srgb, var(--c2-text-dim) 70%, transparent); background: transparent;
background-clip: content-box;
} }
.c2-events-table tbody::-webkit-scrollbar-thumb:hover { .c2-events-table tbody:hover::-webkit-scrollbar-thumb {
background: color-mix(in srgb, var(--c2-text-dim) 70%, transparent);
}
.c2-events-table tbody:hover::-webkit-scrollbar-thumb:hover {
background: color-mix(in srgb, var(--c2-text-muted) 78%, transparent); background: color-mix(in srgb, var(--c2-text-muted) 78%, transparent);
background-clip: content-box;
} }
.c2-events-table thead th { .c2-events-table thead th {
+139 -24
View File
@@ -207,11 +207,14 @@ html[data-theme="dark"] .main-sidebar {
padding: 16px 0; padding: 16px 0;
background: transparent; background: transparent;
padding-top: 56px; padding-top: 56px;
scrollbar-width: thin;
scrollbar-color: transparent transparent;
transition: scrollbar-color 0.2s ease;
} }
/* 侧边栏滚动条样式 */ /* 侧边栏滚动条:默认隐藏,悬停时显示 */
.main-sidebar-nav::-webkit-scrollbar { .main-sidebar-nav::-webkit-scrollbar {
width: 6px; width: 4px;
} }
.main-sidebar-nav::-webkit-scrollbar-track { .main-sidebar-nav::-webkit-scrollbar-track {
@@ -219,12 +222,33 @@ html[data-theme="dark"] .main-sidebar {
} }
.main-sidebar-nav::-webkit-scrollbar-thumb { .main-sidebar-nav::-webkit-scrollbar-thumb {
background: rgba(0, 0, 0, 0.2); background: transparent;
border-radius: 3px; border-radius: 999px;
transition: background 0.2s ease;
} }
.main-sidebar-nav::-webkit-scrollbar-thumb:hover { .main-sidebar-nav:hover {
background: rgba(0, 0, 0, 0.3); scrollbar-color: rgba(0, 0, 0, 0.22) transparent;
}
.main-sidebar-nav:hover::-webkit-scrollbar-thumb {
background: rgba(0, 0, 0, 0.22);
}
.main-sidebar-nav:hover::-webkit-scrollbar-thumb:hover {
background: rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .main-sidebar-nav:hover {
scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}
html[data-theme="dark"] .main-sidebar-nav:hover::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.28);
}
html[data-theme="dark"] .main-sidebar-nav:hover::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.42);
} }
.nav-section-label { .nav-section-label {
@@ -1735,6 +1759,48 @@ html[data-theme="dark"] .new-chat-btn:focus-visible {
overflow-x: hidden; overflow-x: hidden;
padding: 16px; padding: 16px;
min-height: 0; min-height: 0;
scrollbar-width: thin;
scrollbar-color: transparent transparent;
transition: scrollbar-color 0.2s ease;
}
/* 对话列表滚动条:默认隐藏,悬停时显示 */
.sidebar-content::-webkit-scrollbar {
width: 4px;
}
.sidebar-content::-webkit-scrollbar-track {
background: transparent;
}
.sidebar-content::-webkit-scrollbar-thumb {
background: transparent;
border-radius: 999px;
transition: background 0.2s ease;
}
.sidebar-content:hover {
scrollbar-color: rgba(0, 0, 0, 0.22) transparent;
}
.sidebar-content:hover::-webkit-scrollbar-thumb {
background: rgba(0, 0, 0, 0.22);
}
.sidebar-content:hover::-webkit-scrollbar-thumb:hover {
background: rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .sidebar-content:hover {
scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}
html[data-theme="dark"] .sidebar-content:hover::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.28);
}
html[data-theme="dark"] .sidebar-content:hover::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.42);
} }
.hitl-sidebar-card { .hitl-sidebar-card {
@@ -3451,6 +3517,34 @@ html[data-theme="dark"] .new-chat-btn:focus-visible {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
min-height: 0; min-height: 0;
scrollbar-width: thin;
scrollbar-color: transparent transparent;
}
.chat-messages:hover {
scrollbar-color: color-mix(in srgb, var(--text-muted) 55%, transparent) transparent;
}
.chat-messages::-webkit-scrollbar {
width: 4px;
height: 4px;
}
.chat-messages::-webkit-scrollbar-track {
background: transparent;
}
.chat-messages::-webkit-scrollbar-thumb {
background: transparent;
border-radius: 999px;
}
.chat-messages:hover::-webkit-scrollbar-thumb {
background: color-mix(in srgb, var(--text-muted) 55%, transparent);
}
.chat-messages:hover::-webkit-scrollbar-thumb:hover {
background: color-mix(in srgb, var(--text-muted) 80%, transparent);
} }
.chat-welcome-empty-state { .chat-welcome-empty-state {
@@ -7189,24 +7283,41 @@ html[data-theme="dark"] .login-card .login-submit:disabled {
color: var(--accent-hover); color: var(--accent-hover);
} }
/* 滚动条样式 */ /* 全局滚动条:细条,默认隐藏,悬停显示 */
* {
scrollbar-width: thin;
scrollbar-color: transparent transparent;
}
*:hover {
scrollbar-color: color-mix(in srgb, var(--text-muted, #94a3b8) 55%, transparent) transparent;
}
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 8px; width: 4px;
height: 8px; height: 4px;
} }
::-webkit-scrollbar-track { ::-webkit-scrollbar-track {
background: var(--bg-secondary); background: transparent;
border-radius: 4px;
} }
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
background: var(--text-muted); background: transparent;
border-radius: 4px; border-radius: 999px;
} }
::-webkit-scrollbar-thumb:hover { /* 未悬停时强制隐藏,覆盖各模块常显滑块 */
background: var(--text-secondary); :not(:hover)::-webkit-scrollbar-thumb {
background: transparent !important;
}
*:hover::-webkit-scrollbar-thumb {
background: color-mix(in srgb, var(--text-muted, #94a3b8) 55%, transparent);
}
*:hover::-webkit-scrollbar-thumb:hover {
background: color-mix(in srgb, var(--text-muted, #94a3b8) 80%, transparent);
} }
/* 响应式设计 */ /* 响应式设计 */
@@ -36623,16 +36734,20 @@ html[data-theme="dark"] .btn-secondary:hover {
border-color: var(--accent-color); border-color: var(--accent-color);
} }
html[data-theme="dark"] ::-webkit-scrollbar-track { html[data-theme="dark"] *:hover {
background: #0b1120; scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
} }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { html[data-theme="dark"] :not(:hover)::-webkit-scrollbar-thumb {
background: #334155; background: transparent !important;
} }
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { html[data-theme="dark"] *:hover::-webkit-scrollbar-thumb {
background: #475569; background: rgba(255, 255, 255, 0.28);
}
html[data-theme="dark"] *:hover::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.42);
} }
/* Dashboard has a late, highly specific light theme block. Keep its dark /* Dashboard has a late, highly specific light theme block. Keep its dark
@@ -44277,17 +44392,17 @@ html[data-theme="dark"] #project-panel-assets .projects-panel-pagination.paginat
and recent conversations remain secondary navigation below it. and recent conversations remain secondary navigation below it.
-------------------------------------------------------------------------- */ -------------------------------------------------------------------------- */
.conversation-sidebar { .conversation-sidebar {
width: 320px; width: 280px;
background: #ffffff; background: #ffffff;
} }
.conversation-sidebar-header { .conversation-sidebar-header {
padding: 14px; padding: 12px;
background: #ffffff; background: #ffffff;
} }
.conversation-sidebar .sidebar-content { .conversation-sidebar .sidebar-content {
padding: 14px 14px 18px; padding: 12px 12px 16px;
} }
.conversation-sidebar .conversation-search-box { .conversation-sidebar .conversation-search-box {
+1 -1
View File
@@ -31,7 +31,7 @@
} }
})(); })();
</script> </script>
<link rel="stylesheet" href="/static/css/style.css?v=20260813-5"> <link rel="stylesheet" href="/static/css/style.css?v=20260813-6">
<link rel="stylesheet" href="/static/css/c2.css"> <link rel="stylesheet" href="/static/css/c2.css">
<link rel="stylesheet" href="/static/vendor/xterm.css"> <link rel="stylesheet" href="/static/vendor/xterm.css">
<script src="/static/js/router.js?v=20260813-2"></script> <script src="/static/js/router.js?v=20260813-2"></script>