mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-07-02 05:01:27 +08:00
v0.8.0: Ollama兼容、Git自动安装、Gitee镜像、会话重命名、消息渠道Agent绑定、仪表盘重设计、环境检测实时生效、#44修复
This commit is contained in:
@@ -73,18 +73,28 @@
|
||||
padding: var(--space-sm) var(--space-md);
|
||||
border-bottom: 1px solid var(--border);
|
||||
flex-shrink: 0;
|
||||
gap: 8px;
|
||||
min-height: 44px;
|
||||
}
|
||||
|
||||
.chat-status {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-sm);
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.chat-title {
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
min-width: 0;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/* 状态指示点 */
|
||||
@@ -478,35 +488,70 @@
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 6px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.chat-session-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
/* 卡片式会话条目 */
|
||||
.chat-session-card {
|
||||
padding: 8px 10px;
|
||||
border-radius: var(--radius-md, 6px);
|
||||
cursor: pointer;
|
||||
font-size: 13px;
|
||||
color: var(--text-secondary);
|
||||
transition: background 0.12s;
|
||||
border: 1px solid transparent;
|
||||
transition: background 0.12s, border-color 0.12s;
|
||||
}
|
||||
|
||||
.chat-session-item:hover {
|
||||
.chat-session-card:hover {
|
||||
background: var(--bg-hover);
|
||||
}
|
||||
|
||||
.chat-session-item.active {
|
||||
background: var(--bg-hover);
|
||||
color: var(--text-primary);
|
||||
font-weight: 500;
|
||||
.chat-session-card.active {
|
||||
background: var(--accent-muted, rgba(99, 102, 241, 0.1));
|
||||
border-color: var(--accent-border, rgba(99, 102, 241, 0.3));
|
||||
}
|
||||
|
||||
.chat-session-label {
|
||||
.chat-session-card-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.chat-session-card .chat-session-label {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
flex: 1;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.chat-session-card.active .chat-session-label {
|
||||
color: var(--accent);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.chat-session-card-meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
margin-top: 3px;
|
||||
font-size: 11px;
|
||||
color: var(--text-tertiary);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.chat-session-card-meta span {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.chat-session-agent {
|
||||
background: var(--bg-tertiary);
|
||||
padding: 0 4px;
|
||||
border-radius: 3px;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.chat-session-del {
|
||||
@@ -519,9 +564,10 @@
|
||||
opacity: 0;
|
||||
transition: opacity 0.12s;
|
||||
flex-shrink: 0;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.chat-session-item:hover .chat-session-del {
|
||||
.chat-session-card:hover .chat-session-del {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
@@ -536,11 +582,19 @@
|
||||
padding: 20px 0;
|
||||
}
|
||||
|
||||
/* 模型选择组 */
|
||||
.chat-model-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
/* 头部操作区 */
|
||||
.chat-header-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.chat-toggle-sidebar {
|
||||
|
||||
@@ -78,6 +78,15 @@
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.stat-card-clickable {
|
||||
cursor: pointer;
|
||||
transition: border-color 0.15s, background 0.15s;
|
||||
}
|
||||
.stat-card-clickable:hover {
|
||||
border-color: var(--accent);
|
||||
background: var(--bg-hover);
|
||||
}
|
||||
|
||||
.stat-card-meta {
|
||||
font-size: var(--font-size-xs);
|
||||
color: var(--text-tertiary);
|
||||
@@ -448,8 +457,8 @@ mark {
|
||||
background: #ffffff;
|
||||
border-radius: 20px;
|
||||
padding: 28px 28px 20px;
|
||||
width: 460px;
|
||||
max-width: 92vw;
|
||||
width: 500px;
|
||||
max-width: 94vw;
|
||||
max-height: 90vh;
|
||||
overflow-y: auto;
|
||||
box-shadow: 0 24px 80px rgba(0,0,0,.2);
|
||||
@@ -576,9 +585,9 @@ mark {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.engage-qrcodes {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 16px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 12px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.engage-qr-item {
|
||||
@@ -594,8 +603,9 @@ mark {
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
.engage-qr-item img {
|
||||
width: 110px;
|
||||
height: 110px;
|
||||
width: 100%;
|
||||
max-width: 100px;
|
||||
aspect-ratio: 1;
|
||||
border-radius: 10px;
|
||||
border: 1px solid var(--border-primary);
|
||||
background: #fff;
|
||||
@@ -609,17 +619,21 @@ mark {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.engage-footer {
|
||||
text-align: center;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 16px;
|
||||
border-top: 1px solid var(--border-primary, #e5e7eb);
|
||||
padding-top: 12px;
|
||||
}
|
||||
.engage-today-dismiss,
|
||||
.engage-never {
|
||||
font-size: 12px;
|
||||
color: var(--text-tertiary);
|
||||
cursor: pointer;
|
||||
opacity: 0.5;
|
||||
opacity: 0.6;
|
||||
transition: opacity 150ms;
|
||||
}
|
||||
.engage-today-dismiss:hover,
|
||||
.engage-never:hover {
|
||||
opacity: 1;
|
||||
text-decoration: underline;
|
||||
|
||||
@@ -402,14 +402,14 @@
|
||||
|
||||
/* Gateway 未启动引导横幅 */
|
||||
.gw-banner {
|
||||
background: var(--warning, #f59e0b);
|
||||
color: #000;
|
||||
background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
|
||||
color: #78350f;
|
||||
padding: 8px 16px;
|
||||
font-size: var(--font-size-sm);
|
||||
z-index: 100;
|
||||
transition: all 300ms ease;
|
||||
overflow: hidden;
|
||||
max-height: 50px;
|
||||
max-height: 80px;
|
||||
}
|
||||
.gw-banner-hidden {
|
||||
max-height: 0;
|
||||
|
||||
@@ -7,67 +7,72 @@
|
||||
}
|
||||
|
||||
.dashboard-overview {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: var(--space-xl);
|
||||
margin-bottom: var(--space-xl);
|
||||
}
|
||||
|
||||
.overview-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
.overview-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: var(--space-md);
|
||||
}
|
||||
|
||||
.overview-item {
|
||||
.overview-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
gap: var(--space-md);
|
||||
padding: var(--space-md) var(--space-lg);
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border-primary);
|
||||
border-radius: var(--radius-lg);
|
||||
transition: all var(--transition-fast);
|
||||
}
|
||||
|
||||
.overview-item:hover {
|
||||
.overview-card:hover {
|
||||
background: var(--bg-card-hover);
|
||||
border-color: var(--border-focus);
|
||||
}
|
||||
|
||||
.overview-label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-sm);
|
||||
font-size: var(--font-size-sm);
|
||||
color: var(--text-secondary);
|
||||
font-weight: 500;
|
||||
.overview-card[data-nav]:hover {
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.overview-label svg {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
.overview-card-icon {
|
||||
flex-shrink: 0;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.overview-card-body {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.overview-card-title {
|
||||
font-size: var(--font-size-xs);
|
||||
color: var(--text-tertiary);
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.3px;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
.overview-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.overview-status {
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 600;
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
.overview-value {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-sm);
|
||||
font-size: var(--font-size-sm);
|
||||
font-family: var(--font-mono);
|
||||
.overview-card-value {
|
||||
font-size: var(--font-size-lg);
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.overview-card-meta {
|
||||
font-size: var(--font-size-xs);
|
||||
color: var(--text-tertiary);
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.overview-card-actions {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
flex-shrink: 0;
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
/* 服务卡片 */
|
||||
@@ -1508,13 +1513,12 @@ details.docker-other-section[open] > .docker-other-toggle::before {
|
||||
|
||||
/* === 移动端响应式 === */
|
||||
@media (max-width: 768px) {
|
||||
.dashboard-overview {
|
||||
grid-template-columns: 1fr;
|
||||
gap: var(--space-md);
|
||||
.overview-grid {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
.overview-item {
|
||||
.overview-card {
|
||||
padding: var(--space-sm) var(--space-md);
|
||||
font-size: 13px;
|
||||
}
|
||||
.overview-value {
|
||||
font-size: 13px;
|
||||
@@ -1568,10 +1572,11 @@ details.docker-other-section[open] > .docker-other-toggle::before {
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.overview-item {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 4px;
|
||||
.overview-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.overview-card {
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user