qwen-code/packages/web-shell/client/components/ChatPane.module.css
ytahdn 6e096cf16c
fix(web-shell): align split view chat interactions (#6633)
* fix(web-shell): align split chat interactions

* fix(web-shell): preserve split pane drafts on send failure

---------

Co-authored-by: ytahdn <ytahdn@gmail.com>
2026-07-10 04:19:42 +00:00

87 lines
1.7 KiB
CSS

.pane {
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;
height: 100%;
background: var(--background);
border: 1px solid var(--border);
border-radius: 10px;
overflow: hidden;
}
.header {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 10px;
border-bottom: 1px solid var(--border);
background: color-mix(in srgb, var(--foreground) 3%, transparent);
flex: 0 0 auto;
}
/* Per-pane connection-loss indicator: each pane has its own daemon connection,
so a drop on one shouldn't silently leave stale messages with no signal. */
.connectionError {
flex: 0 0 auto;
padding: 6px 10px;
background: var(--warning-bg);
border-bottom: 1px solid var(--warning-border);
color: var(--warning-color);
font-size: 12px;
}
.connectionErrorText {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.title {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 13px;
font-weight: 600;
color: var(--foreground);
}
.closeButton {
flex: 0 0 auto;
display: inline-flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
border: none;
border-radius: 6px;
background: transparent;
color: var(--muted-foreground);
cursor: pointer;
}
.closeButton:hover {
color: var(--foreground);
background: color-mix(in srgb, var(--foreground) 8%, transparent);
}
/* The transcript takes the remaining height and scrolls independently per pane. */
.body {
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
display: flex;
flex-direction: column;
}
.footer {
flex: 0 0 auto;
padding: 8px;
position: relative;
}
.approval {
margin-bottom: 8px;
}