.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); }