Файли
openidea/src/features/agents/Home.module.css
T

130 рядки
2.5 KiB
CSS

.home {
--agent-fs-ui: calc(var(--fs-ui) + var(--agent-font-zoom, 0px));
--agent-fs-small: calc(var(--fs-small) + var(--agent-font-zoom, 0px));
--agent-fs-code: calc(var(--fs-code) + var(--agent-font-zoom, 0px));
flex: 1;
min-height: 0;
overflow: auto;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 24px 24px 12vh;
background: var(--bg-editor);
color: var(--fg);
}
.inner {
/* A compact block in the middle of the page: narrower than a session's conversation. */
width: min(680px, 100%);
display: flex;
flex-direction: column;
gap: var(--space-2);
}
.fitWidth .inner {
width: 100%;
}
.heading {
margin: 0 0 10px;
font-size: calc(18px + var(--agent-font-zoom, 0px));
font-weight: 500;
letter-spacing: -0.01em;
line-height: 1.4;
text-align: center;
color: var(--fg-strong);
text-wrap: balance;
}
/* A box to write in, not a search bar: room for a few lines before it grows. */
.composer {
--composer-min-height: calc(4.5em + 12px);
}
/* Under the box: one quiet group, the project, checkout and branch side by side. */
.where {
display: flex;
align-items: center;
gap: var(--space-1);
min-width: 0;
padding: 0 6px;
color: var(--fg-subtle);
font-size: var(--fs-small);
}
.where > button {
flex: 0 1 auto;
min-width: 0;
color: inherit;
font-size: inherit;
}
.project {
display: inline-flex;
align-items: center;
gap: var(--space-1-5);
min-width: 0;
height: var(--h-control);
padding: 0 4px;
}
.label {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.projectPicker {
max-width: 40%;
}
/* The agent shows as its icon only. */
.agentPicker {
display: flex;
flex: none;
}
.note,
.warning {
margin: 0;
padding: 0 4px;
font-size: var(--fs-small);
color: var(--fg-subtle);
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.warning {
color: var(--danger);
}
.docked {
justify-content: flex-end;
padding: var(--space-3);
}
/* The tool window keeps its box at the bottom, as a session does; the question is a hint line above it. */
.dockedIntro {
flex: 1;
display: flex;
align-items: flex-end;
width: 100%;
min-height: 0;
padding-bottom: var(--space-2);
}
.docked .heading {
margin: 0;
padding: 0 4px;
font-size: var(--agent-fs-ui);
font-weight: 400;
letter-spacing: normal;
text-align: left;
color: var(--fg-muted);
}
.notes {
display: flex;
flex-direction: column;
gap: var(--space-2);
height: 0;
}
.docked .notes {
height: auto;
}
.docked .notes:empty {
display: none;
}