Файли
openidea/src/features/vcs/CombinedDiff.module.css
T
l0ng-ai 260ac4efbf feat(agents): open a task's changes in an editor tab (#5721)
The changed-files chip under the composer opens the task's changes in an
editor tab of their own: the file tree beside one scrolling diff of every
file, with the scope, accept and rollback controls in the diff's toolbar.
The conversation keeps its layout instead of gaining a side pane.

Added and deleted files show their one side alone, and selecting a file
no longer renders every mounted diff again.
2026-11-25 14:22:30 +08:00

149 рядки
2.7 KiB
CSS

.root {
flex: 1;
height: 100%;
min-height: 0;
display: flex;
flex-direction: column;
background: var(--bg-app);
}
.toolbar {
flex: none;
display: flex;
align-items: center;
gap: var(--space-0-5);
padding: var(--space-1) 10px;
border-bottom: 1px solid var(--border);
}
.sep {
flex: none;
width: 1px;
height: 14px;
margin-inline: var(--space-1);
background: var(--border-strong);
}
.count {
min-width: 0;
margin-inline: var(--space-1-5);
overflow: hidden;
text-overflow: ellipsis;
color: var(--fg-subtle);
font-size: var(--fs-small);
white-space: nowrap;
}
.grow {
flex: 1;
}
/* A list of the files beside the diffs, under the shared toolbar. */
.split {
flex: 1;
min-height: 0;
}
.files,
.diffs {
display: flex;
flex-direction: column;
min-height: 0;
}
.files > *,
.diffs > .scroll {
flex: 1;
min-height: 0;
}
.scroll {
flex: 1;
min-height: 0;
overflow-y: auto;
padding: var(--space-2) var(--space-3);
}
/* Only the blocks near the viewport are rendered, each at its offset in the full height. */
.blocks {
position: relative;
}
.slot {
position: absolute;
left: 0;
width: 100%;
/* The gap between blocks, inside the measured slot. */
padding-bottom: 10px;
}
.block {
border: 1px solid var(--border);
border-radius: var(--radius-popup-large);
background: var(--bg-editor);
}
/* The file's header stays at the top while its diff scrolls by. */
.header {
position: sticky;
top: 0;
z-index: 3;
display: flex;
align-items: center;
gap: var(--space-1);
padding: var(--space-3) 10px;
background: var(--bg-editor);
border-bottom: 1px solid var(--border);
border-start-start-radius: inherit;
border-start-end-radius: inherit;
font-size: var(--fs-ui);
}
.block[data-collapsed] .header {
border-radius: inherit;
border-bottom: 0;
}
.file {
display: flex;
align-items: center;
gap: var(--space-1-5);
min-width: 0;
flex: 1;
}
.file > svg {
flex: none;
}
.name,
.dir {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.name {
font-weight: 600;
}
.dir {
flex: 1;
color: var(--fg-subtle);
}
.body {
display: flex;
flex-direction: column;
overflow: hidden;
border-end-start-radius: inherit;
border-end-end-radius: inherit;
}
.body[hidden] {
display: none;
}
.placeholder {
height: 160px;
}
.empty {
display: flex;
align-items: center;
justify-content: center;
color: var(--fg-subtle);
}
:global(:root[data-compact]) .toolbar {
padding-block: 1px;
}
:global(:root[data-compact]) .scroll {
padding: var(--space-1) var(--space-1-5);
}
:global(:root[data-compact]) .header {
padding-block: 7px;
}
:global(:root[data-compact]) .slot {
padding-bottom: var(--space-1);
}