qwen-code/packages/web-shell/client/App.module.css
ytahdn e379ea4e53
feat(web-shell): enhance composer and empty-session animations (#8098)
* feat(web-shell): enhance composer animations

* fix(web-shell): refresh DPR on resize and cover animation a11y guards

Re-read devicePixelRatio inside each resize so the specular composer
effect and the new-session dot field keep a correctly sized backing
store when the page zoom or display scale factor changes. Add
component-level coverage for the prefers-reduced-motion guards and for
the typewriter replay after the empty editor loses focus.

* fix(web-shell): localise specular highlight, fix rotation direction, add idle bail-out (#8098)

* fix(web-shell): correct specular angle wrap and dot field pointer baseline (#8098)

* fix(web-shell): paint static dot grid and idle animation loops (#8098)

* fix(web-shell): reset specular proximity on pointer leave and test WebGL cleanup (#8098)

---------

Co-authored-by: 钉萁 <dingqi.jww@alibaba-inc.com>
Co-authored-by: qwen-code-dev-bot <qwen-code-dev@service.alibaba.com>
Co-authored-by: Qwen Code Autofix <qwen-code-autofix@users.noreply.github.com>
Co-authored-by: qwen-code-ci-bot <qwen-code-ci-bot@users.noreply.github.com>
Co-authored-by: Qwen Code Bot <qwen-code-bot@users.noreply.github.com>
2026-07-31 02:20:27 +00:00

1097 lines
24 KiB
CSS

.app {
--chat-content-width: 1000px;
--chat-shell-width: 1040px;
--chat-regular-content-width: 1000px;
--chat-regular-shell-width: 1040px;
--font-mono:
'SF Mono', 'Fira Code', 'JetBrains Mono', 'Cascadia Code', monospace;
--font-sans:
-apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
--radius: 6px;
/* Theme-independent session/workspace accent palette — single source of truth
for the sidebar group dots, overview badges, and split-pane workspace
accents. Kept here (not per-theme) since the values don't vary by theme. */
--accent-red: #ff5a5f;
--accent-orange: #ff8a2a;
--accent-yellow: #f6c431;
--accent-green: #69c987;
position: relative;
display: flex;
flex-direction: column;
height: 100%;
min-height: 0;
/*
* Safe-area padding for mobile devices with notch / home indicator.
* With `viewport-fit=cover` in index.html the page extends behind the
* status-bar, home-indicator, and landscape notch regions; these env()
* insets push the content back into the visible safe area. On desktop
* or phones without notches every inset evaluates to 0 so nothing
* changes.
*/
padding-top: env(safe-area-inset-top);
padding-bottom: env(safe-area-inset-bottom);
padding-left: env(safe-area-inset-left);
padding-right: env(safe-area-inset-right);
background: var(--background);
color: var(--foreground);
font-family: var(--font-sans);
font-size: 14px;
line-height: 1.5;
overflow: hidden;
}
.appChat {
height: 100%;
min-height: 0;
overflow: hidden;
}
.appChatEmpty {
justify-content: center;
overflow-y: auto;
}
.appShell {
flex: 1 1 auto;
min-height: 0;
display: flex;
width: 100%;
overflow: hidden;
}
.contextShell {
display: flex;
flex: 1 1 auto;
min-width: 0;
min-height: 0;
flex-direction: column;
overflow: hidden;
}
.chatHeaderRow {
display: flex;
min-width: 0;
flex: 0 0 auto;
align-items: center;
border-bottom: 1px solid var(--border);
background: var(--background);
}
.customChatHeader {
min-width: 0;
flex: 1 1 auto;
}
.contextBody {
position: relative;
display: flex;
flex: 1 1 auto;
min-width: 0;
min-height: 0;
overflow: hidden;
}
.contextBodyWithEnvironmentPanel .chatPane,
.contextBodyWithEnvironmentPanel .content {
overflow: visible;
}
.contextBodyWithEnvironmentPanel [data-web-shell-message-list] {
box-sizing: border-box;
width: calc(100% + 332px);
padding-right: 356px;
}
.chatPane {
flex: 1 1 auto;
min-width: 0;
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
}
.artifactResizeHandle {
flex: 0 0 8px;
width: 8px;
margin-left: -4px;
cursor: col-resize;
position: relative;
z-index: 2;
touch-action: none;
}
.artifactResizeHandle::after {
content: '';
position: absolute;
inset: 0 3px;
background: transparent;
}
.artifactPanelDock {
flex: 0 0 var(--artifact-panel-dock-width);
width: var(--artifact-panel-dock-width);
min-width: 0;
display: flex;
animation: artifactPanelDockOpen 200ms cubic-bezier(0.32, 0.72, 0, 1);
}
.artifactPanelClip {
flex: 1 1 auto;
min-width: 0;
display: flex;
overflow: hidden;
}
@keyframes artifactPanelDockOpen {
from {
flex-basis: 0;
width: 0;
}
to {
flex-basis: var(--artifact-panel-dock-width);
width: var(--artifact-panel-dock-width);
}
}
@media (prefers-reduced-motion: reduce) {
.artifactPanelDock {
animation: none;
}
}
/* Positioning context so the scheduled-tasks page (position:absolute) covers
exactly the chat pane. Only applied while the page is shown, so normal chat
layout is untouched. */
.chatPaneShowingPage {
position: relative;
}
/* Full-pane view that replaces the chat (messages + composer stay mounted
underneath, so returning to chat preserves their state). */
.fullPage {
position: absolute;
inset: 0;
z-index: 20;
background: var(--background);
display: flex;
flex-direction: column;
overflow: hidden;
}
.fullPageHeader {
flex: 0 0 auto;
display: flex;
align-items: center;
gap: 10px;
padding: 14px 20px;
border-bottom: 1px solid var(--border);
}
/* Non-blocking banner shown at the top of the split when the outer (main)
session is waiting on an approval that's hidden behind the split view. */
.splitApprovalNotice {
flex: 0 0 auto;
display: flex;
align-items: center;
gap: 10px;
padding: 8px 16px;
background: var(--warning-bg);
border-bottom: 1px solid var(--warning-border);
color: var(--warning-color);
font-size: 13px;
}
.splitApprovalNotice button {
appearance: none;
margin-left: auto;
border: 1px solid var(--warning-border);
background: transparent;
color: inherit;
cursor: pointer;
padding: 3px 12px;
border-radius: 6px;
font-size: 12px;
font-weight: 500;
}
.splitApprovalNotice button:hover {
background: var(--warning-border);
}
.fullPageBack {
appearance: none;
border: none;
background: transparent;
color: var(--muted-foreground);
cursor: pointer;
width: 32px;
height: 32px;
border-radius: 8px;
display: inline-flex;
align-items: center;
justify-content: center;
}
.fullPageBack:hover {
background: var(--muted);
color: var(--foreground);
}
.fullPageTitle {
font-size: 16px;
font-weight: 600;
color: var(--foreground);
}
.fullPageBody {
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
padding: 20px 24px;
}
.mobileDrawer {
display: contents;
}
.mobileBackdrop {
display: none;
}
/* Hosts can embed WebShell in a narrow side pane while the browser viewport
* remains wide. The public drawer API must still show a usable overlay inside
* that container instead of relying exclusively on the viewport media query. */
.mobileDrawerForced {
display: block;
position: absolute;
inset: 0;
z-index: 50;
pointer-events: auto;
visibility: visible;
padding-top: env(safe-area-inset-top);
padding-right: env(safe-area-inset-right);
padding-bottom: env(safe-area-inset-bottom);
padding-left: env(safe-area-inset-left);
}
.mobileDrawerForced .mobileBackdrop {
display: block;
position: absolute;
inset: 0;
z-index: 49;
background: rgba(0, 0, 0, 0.5);
opacity: 1;
pointer-events: auto;
}
.mobileDrawerForced > aside {
position: relative;
z-index: 50;
}
.hamburgerButton {
display: none;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
padding: 0;
border: none;
background: transparent;
color: var(--foreground);
cursor: pointer;
flex-shrink: 0;
border-radius: var(--radius);
}
.hamburgerButton:hover {
background: var(--accent);
}
.hamburgerButton svg {
width: 20px;
height: 20px;
}
@media (max-width: 900px) {
.artifactResizeHandle {
display: none;
}
}
@media (max-width: 760px) {
.mobileDrawer {
display: block;
position: fixed;
top: 0;
left: 0;
bottom: 0;
z-index: 50;
pointer-events: none;
visibility: hidden;
/* Keep the panel visible until the backdrop finishes fading out so they
disappear together instead of the panel vanishing a frame early. */
transition: visibility 0s linear 200ms;
}
.mobileDrawerOpen {
visibility: visible;
pointer-events: auto;
/* Show immediately on open; only the close path needs the delay above. */
transition-delay: 0s;
/* With `viewport-fit=cover`, the fixed drawer extends behind the status
bar, home indicator, and landscape notch. Push the sidebar content
into the safe area while keeping the backdrop full-screen (it is a
sibling, not a child). */
padding-top: env(safe-area-inset-top);
padding-bottom: env(safe-area-inset-bottom);
padding-left: env(safe-area-inset-left);
padding-right: env(safe-area-inset-right);
}
.mobileBackdrop {
display: block;
position: fixed;
inset: 0;
z-index: 49;
background: rgba(0, 0, 0, 0.5);
opacity: 0;
pointer-events: none;
transition: opacity 200ms ease;
}
.mobileDrawerOpen .mobileBackdrop {
opacity: 1;
pointer-events: auto;
}
.hamburgerButton {
display: flex;
}
.hamburgerButtonFloating {
position: fixed;
top: calc(env(safe-area-inset-top) + 12px);
left: calc(env(safe-area-inset-left) + 12px);
z-index: 10;
}
}
.appChatEmpty.appWithSidebar {
justify-content: flex-start;
overflow: hidden;
}
.appChatEmpty .chatPane {
justify-content: center;
overflow-y: auto;
}
.themeDark {
--background: #0d0d0d;
--foreground: #fafafa;
--card: #161616;
--card-foreground: #fafafa;
--table-section-bg: var(--subtle-bg);
--popover: #1a1a1a;
--popover-foreground: #fafafa;
--primary: #fafafa;
--primary-foreground: #0a0a0b;
--secondary: #1e1e1e;
--secondary-foreground: #a3a3a5;
--muted: #161616;
--muted-foreground: #808598;
--accent: #1e1e1e;
--accent-foreground: #fafafa;
--border: #2a2a2a;
--ring: #747476;
--sidebar-background: #0d0d0d;
--sidebar-foreground: #fafafa;
--sidebar-primary: #fafafa;
--sidebar-primary-foreground: #0a0a0b;
--sidebar-accent: #1e1e1e;
--sidebar-accent-foreground: #fafafa;
--sidebar-border: #2a2a2a;
--sidebar-ring: #747476;
--agent-blue-500: #6785ff;
--agent-blue-400: #8aa0ff;
--agent-blue-300: #b4c3ff;
--agent-blue-200: #2f3f88;
--agent-blue-100: #1c254f;
--agent-purple-300: #bcacfe;
--agent-purple-400: #d5cbfe;
--agent-purple-600: #9a7cff;
--agent-purple-shadow: 0 0 40px rgba(119, 85, 254, 0.28);
--agent-gray-200: #2a2d34;
--agent-gray-500: #808598;
--agent-gray-800: #3b3f49;
--success-color: #48bb78;
--warning-color: #ecc94b;
--error-color: #fc8181;
--streaming-label-color: #b794f4;
--agent-logo-gradient: linear-gradient(
90deg,
#4796e4 0%,
#847ace 52%,
#c3677f 100%
);
--subtle-bg: rgba(255, 255, 255, 0.04);
--subtle-bg-strong: rgba(255, 255, 255, 0.06);
--success-bg: rgba(72, 187, 120, 0.12);
--warning-bg: rgba(236, 201, 75, 0.08);
--warning-border: rgba(236, 201, 75, 0.2);
--error-bg: rgba(252, 129, 129, 0.08);
--error-border: rgba(252, 129, 129, 0.2);
--chat-editor-bg-primary: #2f2f2f;
--chat-editor-bg-tertiary: #1e1e1e;
--chat-editor-border-color: #2a2a2a;
--chat-editor-text-primary: #e4e4e4;
--chat-editor-text-secondary: #a0a0a0;
--chat-editor-text-dimmed: #666;
--chat-editor-accent-color: #4a9eff;
--chat-editor-selection-bg: #3d5a7a;
--chat-editor-selection-color: #ffffff;
--scrollbar-track: transparent;
--scrollbar-thumb: #3a3a3a;
--scrollbar-thumb-hover: #525252;
--git-mode-current: #3ddc97;
--git-mode-branch: #f5a623;
--git-mode-worktree: #b48eff;
--git-mode-valid: #48bb78;
--git-mode-invalid: #fc8181;
}
.themeLight {
--background: #ffffff;
--foreground: #0a0a0b;
--card: #ffffff;
--card-foreground: #0a0a0b;
--table-section-bg: #f3f4f6;
--popover: #ffffff;
--popover-foreground: #0a0a0b;
--primary: #151517;
--primary-foreground: #fafafa;
--secondary: #f3f3f5;
--secondary-foreground: #747476;
--muted: #f3f3f5;
--muted-foreground: #a3a3a5;
--accent: #f3f3f5;
--accent-foreground: #151517;
--border: #e3e4e6;
--ring: #a3a3a5;
--sidebar-background: #fafafa;
--sidebar-foreground: #0a0a0b;
--sidebar-primary: #151517;
--sidebar-primary-foreground: #fafafa;
--sidebar-accent: #f3f3f5;
--sidebar-accent-foreground: #151517;
--sidebar-border: #e3e4e6;
--sidebar-ring: #a3a3a5;
--agent-blue-500: #0033ff;
--agent-blue-400: #335cff;
--agent-blue-300: #6785ff;
--agent-blue-200: #b4c3ff;
--agent-blue-100: #cdd7ff;
--agent-purple-300: #d5cbfe;
--agent-purple-400: #bcacfe;
--agent-purple-600: #7755fe;
--agent-purple-shadow: 0 0 40px rgba(203, 207, 254, 0.45);
--agent-gray-200: #d4d7e2;
--agent-gray-500: #808598;
--agent-gray-800: #3b3f49;
--success-color: #1f7a3a;
--warning-color: #9a6a00;
--error-color: #c0362c;
--streaming-label-color: #7b4ab8;
--agent-logo-gradient: linear-gradient(
90deg,
#0b66c3 0%,
#7357b8 52%,
#bd4f67 100%
);
--subtle-bg: rgba(32, 31, 25, 0.05);
--subtle-bg-strong: rgba(32, 31, 25, 0.08);
--success-bg: rgba(31, 122, 58, 0.11);
--warning-bg: rgba(154, 106, 0, 0.1);
--warning-border: rgba(154, 106, 0, 0.24);
--error-bg: rgba(192, 54, 44, 0.1);
--error-border: rgba(192, 54, 44, 0.24);
--chat-editor-bg-primary: var(--background);
--chat-editor-bg-tertiary: #f2f2f3;
--chat-editor-border-color: #d8d6cc;
--chat-editor-text-primary: #22231f;
--chat-editor-text-secondary: #5f6259;
--chat-editor-text-dimmed: #8b8d84;
--chat-editor-accent-color: #0b66c3;
--chat-editor-selection-bg: rgba(11, 102, 195, 0.18);
--chat-editor-selection-color: var(--chat-editor-text-primary);
--scrollbar-track: transparent;
--scrollbar-thumb: #c7c9cc;
--scrollbar-thumb-hover: #aeb1b5;
--git-mode-current: #1a7a4a;
--git-mode-branch: #9a6a00;
--git-mode-worktree: #6b3fa0;
--git-mode-valid: #1f7a3a;
--git-mode-invalid: #c0362c;
}
.content {
flex: 1 1 auto;
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
}
.contentHasMessages {
flex: 1 1 auto;
}
.appChatEmpty .content {
flex: 0 0 auto;
overflow: visible;
}
.missingSessionState {
flex: 1 1 auto;
min-height: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 18px;
padding: 24px;
color: var(--foreground);
font-family: var(--font-sans);
}
.missingSessionMessage {
font-size: inherit;
font-weight: inherit;
line-height: 1.4;
text-align: center;
}
.missingSessionButton {
min-width: 120px;
min-height: 38px;
padding: 0 16px;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--primary);
color: var(--primary-foreground);
font: inherit;
font-size: 14px;
cursor: pointer;
transition:
border-color 120ms ease,
opacity 120ms ease;
}
.missingSessionButton:hover,
.missingSessionButton:focus-visible {
border-color: color-mix(in srgb, var(--foreground) 24%, var(--border));
opacity: 0.9;
}
.missingSessionButton:focus-visible {
box-shadow: 0 0 0 2px color-mix(in srgb, var(--foreground) 12%, transparent);
outline: none;
}
.missingSessionButton:disabled {
cursor: not-allowed;
opacity: 0.5;
}
/* In-place panel that replaces the chat view (message list + composer) when
Settings or Daemon Status is opened. Fills the chat pane and owns its own
scroll container, mirroring what the DialogShell body used to provide. */
.panelHost {
flex: 1 1 auto;
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
}
.panelHeader {
display: flex;
align-items: center;
gap: 10px;
min-height: 46px;
padding: 10px 20px;
border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.panelBack {
display: inline-flex;
align-items: center;
justify-content: center;
width: 30px;
height: 30px;
flex: 0 0 auto;
padding: 0;
border: none;
border-radius: var(--radius);
background: transparent;
color: var(--muted-foreground);
cursor: pointer;
}
.panelBack:hover,
.panelBack:focus-visible {
background: var(--accent);
color: var(--foreground);
}
.panelBack svg {
width: 18px;
height: 18px;
}
.panelTitle {
min-width: 0;
flex: 1 1 auto;
color: var(--foreground);
font-size: 14px;
font-weight: 600;
line-height: 1.35;
}
.panelBody {
container-name: panel-body;
container-type: inline-size;
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
padding: 16px 20px;
}
/* The chat view (message list + composer) stays mounted while a panel is shown,
just hidden — so the composer keeps its unsent draft and attachments instead
of losing them on unmount. */
.chatViewWrap {
flex: 1 1 auto;
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
}
.chatViewHidden {
display: none;
}
.chatSubtree {
display: contents;
}
.chatSubtreeHidden {
display: none;
}
/* Empty (new-chat) state centers the welcome header + composer vertically via
`.appChatEmpty .chatPane { justify-content: center }`. For that to take effect
the wrapper must shrink to its content instead of filling the pane — the same
thing `.content` already does in this state. */
.appChatEmpty .chatViewWrap {
position: relative;
z-index: 1;
flex: 0 0 auto;
overflow: visible;
}
.appChatEmpty .chatPane {
position: relative;
}
.footer {
position: relative;
width: min(100%, var(--chat-shell-width));
margin: 0 auto;
padding-right: 20px;
padding-left: 20px;
flex-shrink: 0;
transition: width 320ms ease;
}
.bottomPanels {
position: absolute;
bottom: calc(100% + var(--web-shell-bottom-panel-gap, 6px));
right: 0;
left: 0;
z-index: 3;
display: flex;
justify-content: center;
pointer-events: none;
}
.bottomPanels > * {
pointer-events: auto;
}
.approvalOverlay {
position: absolute;
right: 20px;
bottom: calc(100% + 8px);
left: 20px;
z-index: calc(var(--web-shell-dialog-backdrop-z-index, 50) + 10);
pointer-events: auto;
}
.approvalOverlay:focus,
.approvalOverlay:focus-visible {
outline: none;
}
.scrollToBottomLayer {
position: absolute;
bottom: calc(100% + 10px);
right: 0;
left: 0;
z-index: 3;
display: flex;
justify-content: center;
pointer-events: none;
}
.scrollToBottomLayerWithTodos {
bottom: calc(
100% + var(--web-shell-bottom-panel-height, 0px) +
var(--web-shell-bottom-panel-gap, 6px) + 8px
);
}
.scrollToBottomButton {
display: inline-flex;
box-sizing: border-box;
width: 34px;
height: 34px;
align-items: center;
justify-content: center;
padding: 0;
border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
border-radius: 50%;
background: color-mix(in srgb, var(--background) 96%, transparent);
box-shadow: 0 8px 24px color-mix(in srgb, #000 10%, transparent);
color: var(--foreground);
cursor: pointer;
backdrop-filter: blur(8px);
pointer-events: auto;
transition:
border-color 120ms ease,
box-shadow 120ms ease,
transform 120ms ease;
}
.scrollToBottomButton:hover,
.scrollToBottomButton:focus-visible {
border-color: color-mix(in srgb, var(--foreground) 24%, var(--border));
box-shadow: 0 10px 28px color-mix(in srgb, #000 14%, transparent);
outline: none;
}
.scrollToBottomIcon {
width: 18px;
height: 18px;
stroke-width: 1.8;
}
.btwPanel {
flex-shrink: 0;
margin: 0 auto;
width: min(100%, var(--chat-regular-shell-width, 1040px));
padding: 4px 20px;
}
.composer {
flex-shrink: 0;
padding: 0;
}
.composerHeader {
margin-bottom: 8px;
}
.customFooter {
flex-shrink: 0;
}
/* Esc-clear hint, shown in the composer's top status slot (where the streaming
loader sits) — the two never coexist, so it stays clear of the queue. */
.escClearStatus {
flex-shrink: 0;
padding: 4px 0;
font-size: 13px;
color: var(--muted-foreground);
}
.composerActionTip {
flex-shrink: 0;
display: flex;
align-items: center;
gap: 8px;
padding: 3px 0;
font-size: 13px;
color: var(--muted-foreground);
}
.composerActionTipIcon {
color: color-mix(in srgb, var(--streaming-label-color) 78%, transparent);
font-size: 11px;
line-height: 1;
transform: translateY(-0.5px);
}
.composerActionTipText {
min-width: 0;
color: var(--streaming-label-color);
font-weight: 500;
letter-spacing: -0.01em;
}
.composerActionTipActions {
display: inline-flex;
flex-shrink: 0;
gap: 4px;
}
.composerActionTipButton {
border: 1px solid transparent;
border-radius: 6px;
font: inherit;
font-size: 11px;
line-height: 1.15;
font-weight: 500;
cursor: pointer;
padding: 3px 8px;
white-space: nowrap;
transition:
border-color 120ms ease,
background-color 120ms ease,
color 120ms ease,
transform 120ms ease;
}
.composerActionTipButtonPrimary {
border-color: color-mix(in srgb, var(--primary) 14%, var(--border));
background: color-mix(in srgb, var(--primary) 5%, transparent);
color: color-mix(in srgb, var(--foreground) 94%, var(--primary));
}
.composerActionTipButton:hover,
.composerActionTipButton:focus-visible {
outline: none;
transform: translateY(-0.5px);
}
.composerActionTipButtonPrimary:hover,
.composerActionTipButtonPrimary:focus-visible {
border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
background: color-mix(in srgb, var(--primary) 10%, transparent);
color: var(--foreground);
}
.emptyWelcomeFooter {
padding: 12px 0 0;
}
.mobileWelcomeFooterMiddle {
display: none;
}
.mobileWelcomeGroup {
display: contents;
}
@media (max-width: 760px) {
.appChatEmpty .chatPaneWithMobileComposerBottom {
position: relative;
overflow: hidden;
}
.appChatEmpty .chatViewWithMobileComposerBottom .footer {
position: absolute;
right: 0;
bottom: 0;
left: 0;
margin-top: 0;
}
.appChatEmpty .mobileWelcomeGroup {
display: flex;
flex-direction: column;
}
.appChatEmpty .chatViewWithWelcomeMiddle .footerWithCustomFooter {
display: contents;
}
.appChatEmpty .chatViewWithWelcomeMiddle .footerWithCustomFooter .composer {
order: 2;
width: min(100%, var(--chat-shell-width));
margin: 0 auto;
padding-right: 20px;
padding-left: 20px;
}
.appChatEmpty .chatViewWithWelcomeMiddle .mobileWelcomeFooterMiddle {
display: flex;
flex: 0 0 auto;
align-items: flex-start;
justify-content: center;
width: min(100%, var(--chat-shell-width));
margin: 0 auto;
padding-right: 20px;
padding-left: 20px;
}
.appChatEmpty .chatViewWithWelcomeMiddle .customFooter {
order: 1;
display: flex;
flex: 0 0 auto;
align-items: flex-start;
justify-content: center;
width: min(100%, var(--chat-shell-width));
margin: 0 auto;
padding-right: 20px;
padding-left: 20px;
}
.desktopWelcomeFooter {
display: none;
}
.emptyWelcomeFooter {
text-align: center;
}
}
.queuedPrompts {
display: flex;
flex-direction: column;
gap: 6px;
width: calc(100% - 32px);
margin: 0 auto -8px;
padding: 12px;
border: 1px solid var(--border);
border-radius: 12px 12px 0 0;
background: var(--background);
color: var(--foreground);
font-family: var(--font-sans, system-ui, sans-serif);
font-size: 14px;
line-height: 22px;
}
.queuedPrompt {
display: flex;
align-items: center;
gap: 5px;
min-width: 0;
max-width: 100%;
min-height: 28px;
color: var(--foreground);
}
.queuedPrompt + .queuedPrompt {
border-top: 0;
}
.queuedPromptIcon {
display: inline-flex;
width: 20px;
height: 20px;
align-items: center;
justify-content: center;
flex-shrink: 0;
color: var(--secondary-foreground);
}
.queuedPromptMaskIcon,
.queuedPromptActionIcon {
display: inline-block;
flex-shrink: 0;
background: currentColor;
mask: var(--queued-icon-url) center / contain no-repeat;
-webkit-mask: var(--queued-icon-url) center / contain no-repeat;
}
.queuedPromptMaskIcon {
width: 14px;
height: 14px;
}
.queuedPromptText {
min-width: 0;
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.queuedPromptState {
display: inline-flex;
align-items: center;
gap: 4px;
margin-left: 8px;
color: var(--secondary-foreground);
}
.queuedPromptSpinner {
width: 10px;
height: 10px;
border: 1.5px solid currentColor;
border-top-color: transparent;
border-radius: 999px;
animation: queuedPromptSpin 0.8s linear infinite;
}
@keyframes queuedPromptSpin {
to {
transform: rotate(360deg);
}
}
.queuedPromptActions {
position: relative;
display: inline-flex;
align-items: center;
gap: 10px;
flex-shrink: 0;
color: var(--secondary-foreground);
}
.queuedPromptAction {
display: inline-flex;
align-items: center;
gap: 4px;
min-height: 28px;
appearance: none;
border: 0;
border-radius: 6px;
background: transparent;
color: var(--secondary-foreground);
cursor: pointer;
font: inherit;
font-size: 14px;
line-height: 22px;
padding: 3px 6px;
}
.queuedPromptActionIcon {
width: 14px;
height: 14px;
}
.queuedPromptAction:hover {
background: var(--accent);
color: var(--foreground);
}
.queuedPromptAction:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.queuedPromptAction:disabled:hover {
color: var(--secondary-foreground);
}
.queuedHint {
display: none;
}