Files
qiming/qimingclaw/crates/agent-electron-client/src/renderer/styles/components/App.module.css
2026-06-12 16:33:18 +08:00

116 lines
1.9 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* App 组件样式
* 包含顶部栏、布局等样式
*/
/* 顶部栏右侧信息区 */
.headerRight {
display: flex;
align-items: center;
gap: 12px;
}
/* 用户名 */
.username {
color: #6B7280;
font-size: 12px;
}
/* 状态徽章文字 */
.badgeText {
color: #6B7280;
font-size: 12px;
}
/* 就绪、繁忙状态:橙色小点 */
.badgeIdle :global(.ant-badge-status-dot) {
width: 6px;
height: 6px;
min-width: 6px;
}
/* Webview 模式下顶部栏左侧操作区(替代 logo */
.headerWebviewActions {
display: flex;
align-items: center;
gap: 6px;
}
.siderWithAccount {
display: flex;
flex-direction: column;
overflow: hidden;
}
.siderNavArea {
flex: 1;
min-height: 0;
overflow-y: auto;
padding-top: 4px;
}
.accountButton {
width: calc(100% - 16px);
min-height: 54px;
margin: 8px;
padding: 8px;
border: 0;
border-radius: var(--border-radius);
background: transparent;
color: var(--color-text);
display: flex;
align-items: center;
gap: 8px;
text-align: left;
cursor: pointer;
transition: background-color 0.16s ease;
}
.accountButton:hover,
.accountButton:focus-visible {
background: var(--color-bg-section-header);
outline: none;
}
.accountAvatar {
width: 28px;
height: 28px;
border-radius: 50%;
background: var(--color-bg-elevated);
color: var(--color-icon);
border: 1px solid var(--color-border);
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
overflow: hidden;
}
.accountAvatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.accountText {
min-width: 0;
display: flex;
flex-direction: column;
line-height: 1.25;
}
.accountName {
color: var(--color-text);
font-size: 13px;
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.accountHint {
color: var(--color-text-tertiary);
font-size: 11px;
margin-top: 2px;
}