дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-29 22:02:59 +02:00
Collapsing a block unmounted its diff editor and released the working-tree document, which with autosave off drops its unsaved edits. A loaded block now keeps its diff while collapsed, hidden.
87 рядки
1.5 KiB
CSS
87 рядки
1.5 KiB
CSS
.root {
|
|
flex: 1;
|
|
height: 100%;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--bg-app);
|
|
}
|
|
.toolbar {
|
|
flex: none;
|
|
height: var(--h-header);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-0-5);
|
|
padding: 0 6px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.toolbar > * {
|
|
flex-shrink: 0;
|
|
}
|
|
.sep {
|
|
width: 1px;
|
|
height: 14px;
|
|
margin: 0 4px;
|
|
background: var(--border-strong);
|
|
}
|
|
.count {
|
|
padding: 0 6px;
|
|
color: var(--fg-subtle);
|
|
font-size: var(--fs-small);
|
|
white-space: nowrap;
|
|
}
|
|
.grow {
|
|
flex: 1;
|
|
}
|
|
.scroll {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
}
|
|
.block {
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
/* 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);
|
|
height: var(--h-header);
|
|
padding: 0 6px;
|
|
background: var(--bg-elev);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.name {
|
|
flex: none;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
}
|
|
.dir {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
color: var(--fg-subtle);
|
|
font-size: var(--fs-small);
|
|
}
|
|
.body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.body[hidden] {
|
|
display: none;
|
|
}
|
|
/* Space a block takes before its diff loads, so the scrollbar is roughly right. */
|
|
.placeholder {
|
|
height: 160px;
|
|
}
|
|
.empty {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--fg-subtle);
|
|
}
|