mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-08-17 04:34:46 +00:00
* style(web-shell): polish chat UI * fix(web-shell): address chat polish review feedback --------- Co-authored-by: ytahdn <ytahdn@gmail.com>
295 lines
4.6 KiB
CSS
295 lines
4.6 KiB
CSS
.panel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
margin: 0 0 12px;
|
|
padding: 10px 14px;
|
|
max-width: min(var(--chat-regular-content-width, 1000px), calc(100vw - 64px));
|
|
border: 1px solid var(--border);
|
|
border-radius: 4px;
|
|
background: var(--background);
|
|
color: var(--foreground);
|
|
font-family: var(--font-mono);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.embeddedPanel {
|
|
margin: 0;
|
|
padding: 0;
|
|
max-width: none;
|
|
border: 0;
|
|
border-radius: 0;
|
|
background: transparent;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.header {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
}
|
|
|
|
.title {
|
|
font-weight: 700;
|
|
}
|
|
|
|
.secondary,
|
|
.hint,
|
|
.empty,
|
|
.busy {
|
|
color: var(--muted-foreground);
|
|
}
|
|
|
|
.hint {
|
|
padding: 8px;
|
|
border-radius: 6px;
|
|
background: var(--background);
|
|
}
|
|
|
|
.scopeTabs {
|
|
display: inline-flex;
|
|
align-self: flex-start;
|
|
gap: 4px;
|
|
padding: 3px;
|
|
border-radius: 8px;
|
|
background: var(--background);
|
|
}
|
|
|
|
.scopeTab {
|
|
min-height: 26px;
|
|
padding: 4px 10px;
|
|
border: 0;
|
|
border-radius: 6px;
|
|
background: transparent;
|
|
color: var(--muted-foreground);
|
|
cursor: pointer;
|
|
font: inherit;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.scopeTab:hover,
|
|
.scopeTabActive {
|
|
background: var(--secondary);
|
|
color: var(--foreground);
|
|
}
|
|
|
|
.settingsPage {
|
|
display: grid;
|
|
grid-template-columns: 160px minmax(0, 1fr);
|
|
gap: 12px;
|
|
min-height: 420px;
|
|
}
|
|
|
|
.sidebar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 3px;
|
|
min-width: 0;
|
|
padding-right: 8px;
|
|
border-right: 1px solid var(--border);
|
|
}
|
|
|
|
.categoryButton {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
width: 100%;
|
|
min-height: 32px;
|
|
padding: 5px 8px;
|
|
border: 0;
|
|
border-radius: 6px;
|
|
background: transparent;
|
|
color: var(--muted-foreground);
|
|
cursor: pointer;
|
|
font: inherit;
|
|
text-align: left;
|
|
}
|
|
|
|
.categoryButton:hover,
|
|
.categoryButtonActive {
|
|
background: var(--secondary);
|
|
color: var(--foreground);
|
|
}
|
|
|
|
.categoryCount {
|
|
flex: 0 0 auto;
|
|
color: var(--muted-foreground);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.content {
|
|
display: flex;
|
|
min-width: 0;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.card {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) minmax(170px, max-content);
|
|
gap: 16px;
|
|
align-items: center;
|
|
padding: 8px;
|
|
border-radius: 8px;
|
|
background: var(--background);
|
|
}
|
|
|
|
.card:hover {
|
|
background: var(--secondary);
|
|
}
|
|
|
|
.cardBody {
|
|
min-width: 0;
|
|
}
|
|
|
|
.cardTitle {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
color: var(--foreground);
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.cardDescription,
|
|
.scopeHint {
|
|
margin-top: 3px;
|
|
color: var(--muted-foreground);
|
|
font-size: 12px;
|
|
line-height: 1.45;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.scopeBadge {
|
|
flex: 0 0 auto;
|
|
padding: 1px 5px;
|
|
border-radius: 999px;
|
|
background: var(--secondary);
|
|
color: var(--muted-foreground);
|
|
font-size: 11px;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.cardControl {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
min-width: 0;
|
|
}
|
|
|
|
.select,
|
|
.actionButton,
|
|
.editInput {
|
|
min-height: 28px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
background: var(--background);
|
|
color: var(--foreground);
|
|
font: inherit;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.select {
|
|
max-width: 260px;
|
|
padding: 4px 28px 4px 8px;
|
|
}
|
|
|
|
.actionButton {
|
|
max-width: 260px;
|
|
padding: 4px 9px;
|
|
cursor: pointer;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.actionButton:hover {
|
|
background: var(--secondary);
|
|
}
|
|
|
|
.actionButton:disabled {
|
|
cursor: not-allowed;
|
|
opacity: 0.65;
|
|
}
|
|
|
|
.actionButton:disabled:hover {
|
|
background: var(--background);
|
|
}
|
|
|
|
.editor {
|
|
display: flex;
|
|
gap: 6px;
|
|
max-width: 320px;
|
|
}
|
|
|
|
.editInput {
|
|
min-width: 120px;
|
|
padding: 4px 8px;
|
|
outline: none;
|
|
}
|
|
|
|
.switch {
|
|
position: relative;
|
|
width: 38px;
|
|
height: 22px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 999px;
|
|
background: var(--secondary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.switchOn {
|
|
background: var(--agent-blue-500);
|
|
border-color: var(--agent-blue-500);
|
|
}
|
|
|
|
.switchKnob {
|
|
position: absolute;
|
|
top: 3px;
|
|
left: 3px;
|
|
width: 14px;
|
|
height: 14px;
|
|
border-radius: 50%;
|
|
background: var(--background);
|
|
transition: transform 120ms ease;
|
|
}
|
|
|
|
.switchOn .switchKnob {
|
|
transform: translateX(16px);
|
|
}
|
|
|
|
.footer {
|
|
padding-top: 8px;
|
|
border-top: 1px solid var(--border);
|
|
color: var(--muted-foreground);
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.settingsPage {
|
|
grid-template-columns: 1fr;
|
|
min-height: 0;
|
|
}
|
|
|
|
.sidebar {
|
|
flex-direction: row;
|
|
overflow-x: auto;
|
|
padding-right: 0;
|
|
padding-bottom: 8px;
|
|
border-right: 0;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.categoryButton {
|
|
width: auto;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.card {
|
|
grid-template-columns: 1fr;
|
|
gap: 8px;
|
|
}
|
|
|
|
.cardControl {
|
|
justify-content: flex-start;
|
|
}
|
|
}
|