Файли
openidea/src/features/vcs/GitLog.module.css
T
l0ng-ai cf49a91b66 fix(vcs): group branches and tags in commit details (#5265)
Git Log commit details now show branches and tags in separate groups. Reference names use the same size as the surrounding metadata, and each group wraps within the details pane.
2026-11-23 09:14:35 +08:00

890 рядки
17 KiB
CSS
Неформатований Анотація Історія

Цей файл містить неоднозначні символи Юнікоду
Цей файл містить символи Юнікоду, які можна сплутати з іншими символами. Якщо ви вважаєте, що це зроблено навмисно, можете сміливо ігнорувати це попередження. Щоб показати їх, скористайтеся кнопкою Escape.
.root {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
}
.headerTabs {
min-width: 0;
border: 0;
background: none;
}
.split {
flex: 1;
min-height: 0;
}
.log {
container: git-log / inline-size;
height: 100%;
min-height: 0;
display: flex;
flex-direction: column;
min-width: 0;
}
.grow {
flex: 1;
}
/* branches */
.branches {
height: 100%;
display: flex;
min-width: 0;
}
.branchesTools {
flex: none;
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-0-5);
padding: 4px 2px;
border-right: 1px solid var(--border);
}
.branchesMain {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
}
.branchesBar,
.filters,
.detailsBar {
flex: none;
height: 32px;
display: flex;
align-items: center;
gap: var(--space-0-5);
padding: 0 6px;
}
.branchSearch {
flex: 1;
min-width: 60px;
}
.branchTree {
--tree-detail-flex-shrink: 0;
flex: 1;
min-height: 0;
}
/* Long repository lists shrink before the branch name. */
.mergedBranchTree {
--tree-detail-flex-shrink: 1000;
}
.branchRepos {
margin-left: var(--space-1-5);
color: var(--fg-subtle);
}
.branchDetail {
min-width: 0;
display: inline-flex;
align-items: center;
gap: var(--space-1-5);
line-height: 1;
vertical-align: middle;
}
/* filters */
.filters {
height: auto;
min-height: 32px;
flex-wrap: wrap;
justify-content: flex-end;
gap: var(--space-0-5) var(--space-1);
padding: var(--space-0-5) 8px var(--space-0-5) 6px;
min-width: 0;
}
.filterControls,
.filterActions {
display: flex;
align-items: center;
gap: var(--space-1);
}
.filterControls {
flex: 1 1 260px;
min-width: 0;
}
.filterActions {
flex-wrap: wrap;
justify-content: flex-end;
max-width: 100%;
}
.textFilter {
flex: 0 1 260px;
min-width: min(100px, 60%);
}
.filterGroup {
position: relative;
flex: 0 1 auto;
min-width: 0;
display: flex;
align-items: center;
gap: var(--space-1);
overflow: hidden;
}
.filterHidden {
visibility: hidden;
}
@container git-log (max-width: 320px) {
.filterControls,
.filterActions {
display: contents;
}
.textFilter {
flex: 1 0 100%;
}
/* Keep the filters measurable for the overflow menu. */
.filterGroup {
position: absolute;
width: 0;
}
}
.filterButton {
flex: none;
height: 24px;
display: inline-flex;
align-items: center;
border-radius: var(--radius-small);
color: var(--fg);
}
.filterButton:hover {
background: var(--bg-toolbar-hover);
}
.filterActive,
.filterActive:hover {
background: var(--bg-toolbar-selected);
}
.filterMain {
height: 100%;
display: inline-flex;
align-items: center;
gap: 3px;
padding: 0 6px 0 8px;
font-size: var(--fs-ui);
white-space: nowrap;
max-width: 220px;
overflow: hidden;
}
.filterValue {
min-width: 0;
max-width: 16ch;
overflow: hidden;
text-overflow: ellipsis;
color: var(--fg-strong);
}
@container git-log (max-width: 600px) {
.filterValue {
max-width: 10ch;
}
}
.filterChevron {
color: var(--fg-icon);
}
.filterClear {
flex: none;
height: 100%;
display: inline-flex;
align-items: center;
padding: 0 6px 0 0;
color: var(--fg-icon);
}
.filterClear:hover {
color: var(--fg-strong);
}
.filterMain:focus-visible,
.filterClear:focus-visible {
outline: 2px solid var(--focus-ring);
outline-offset: -2px;
border-radius: var(--radius-small);
}
/* commit table */
.listWrap {
position: relative;
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
min-width: 0;
}
.speedSearch {
position: absolute;
top: 4px;
right: 8px;
z-index: 1;
padding: 4px 8px;
background: var(--bg-popup);
border: 1px solid var(--border);
color: var(--fg);
}
.list {
flex: 1;
min-height: 0;
overflow: hidden auto;
outline: none;
/* Rows coming and going while scrolling relay out the list alone, not the workbench. */
contain: strict;
}
.row {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 26px;
display: flex;
align-items: center;
gap: min(var(--space-2), 2%);
padding: 0 min(var(--space-2), 2%);
white-space: nowrap;
cursor: default;
font-size: var(--fs-ui);
}
.columnHeader {
position: sticky;
top: 0;
z-index: 2;
background: var(--bg-app);
border-bottom: 1px solid var(--border);
color: var(--fg-subtle);
}
.columnHeader:hover {
background: var(--bg-app);
}
.columnCell {
flex: 0 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
/* Keep the first glyph clear of the divider on this column's left edge.
box-sizing: border-box keeps the width and boundary position unchanged. */
padding-inline-start: min(var(--space-2), 2%);
/* Anchor for the full-height column resize strip (IDEA's invisible divider). */
position: relative;
}
.signatureIndicator {
display: inline-flex;
align-items: center;
vertical-align: middle;
}
.columnHeading {
position: relative;
cursor: grab;
touch-action: none;
}
.columnHeading.dragSource {
cursor: grabbing;
opacity: 0.6;
}
.columnHeading.dropBefore {
box-shadow: inset 2px 0 0 var(--accent);
}
.columnHeading.dropAfter {
box-shadow: inset -2px 0 0 var(--accent);
}
/* Column divider: an 8px hit strip centred on the column's LEFT edge, with a
visible rule and grip so the resize target is easy to see and grab. Each row
carries one, so the rule runs the full table height. */
.columnResize {
position: absolute;
inset-block: 0;
/* Keep the strip centre (and rule) at the cell's left edge: the cell has
overflow:hidden, so any rule drawn into the 8px gap would be clipped away. */
inset-inline-start: -4px;
width: 8px;
cursor: col-resize;
touch-action: none;
z-index: 1;
display: flex;
align-items: center;
justify-content: center;
}
/* Divider line is opt-in (View Options › Columns › Column Dividers, off by
default like IDEA). The transparent hit strip and resize cursor always work;
only the paint is gated. */
.columnResize::before,
.columnResize::after {
content: "";
display: none;
}
.showDividers .columnResize::before {
display: block;
position: absolute;
inset-block: 0;
inset-inline-start: 4px;
width: 1px;
background: var(--border-strong);
}
.showDividers .columnResize::after {
display: block;
width: 2px;
height: 16px;
border-radius: 1px;
background: var(--control-off);
}
.showDividers .columnResize:hover::before,
.showDividers .columnResize:active::before {
background: var(--accent);
width: 2px;
}
.showDividers .columnResize:hover::after,
.showDividers .columnResize:active::after {
background: var(--accent);
}
/* First column's border: visible only when dividers are on, never draggable. */
.columnResizeDisabled {
cursor: default;
}
.showDividers .columnResizeDisabled::after {
display: none;
}
.showDividers .columnResizeDisabled:hover::before,
.showDividers .columnResizeDisabled:active::before {
background: var(--border-strong);
width: 1px;
}
/* Data-row strips keep the full-height rule but not the repeating grip. */
.columnResizeRow::after {
display: none;
}
.columnResize:focus-visible {
outline: 2px solid var(--focus-ring);
outline-offset: -1px;
border-radius: 1px;
}
/* View Options › Highlight › Current Branch: commits reachable from HEAD are tinted. */
.currentBranch {
--log-row-bg: var(--bg-log-current-branch);
background: var(--log-row-bg);
}
.row:hover {
background: var(--bg-tree-hover);
}
.list[data-hover-paused] .row:not(.columnHeader):hover {
background: var(--log-row-bg, transparent);
}
.selected,
.selected:hover {
--log-row-bg: var(--bg-tree-selected-inactive);
background: var(--log-row-bg);
}
.list:focus-within .selected {
--log-row-bg: var(--bg-tree-selected);
}
.colSubject {
flex: 1 0 min(220px, 50%);
min-width: 0;
display: flex;
align-items: center;
gap: var(--space-1-5);
/* Anchor for the left divider. The graph SVG uses lane-relative coordinates,
so a positioned parent does not move it. */
position: relative;
/* Let graph endpoints overlap adjacent rows, but never paint over the next column. */
overflow-x: clip;
overflow-y: visible;
}
.colAuthor {
flex: none;
width: 130px;
overflow: hidden;
text-overflow: ellipsis;
}
.colDate {
flex: none;
width: 120px;
overflow: hidden;
text-overflow: ellipsis;
}
.colHash {
flex: none;
width: 72px;
overflow: hidden;
}
.mine {
font-weight: 600;
color: var(--fg);
}
.muted {
color: var(--fg-subtle);
}
.commitText {
--log-subject-min: min(10ch, 30%);
flex: 1;
min-width: 0;
display: flex;
align-items: center;
gap: var(--space-1-5);
}
.subject {
flex: 0 1 auto;
min-width: var(--log-subject-min);
color: var(--fg);
}
.subjectText {
display: block;
overflow: hidden;
text-overflow: ellipsis;
}
.mergeSubject {
color: var(--fg-subtle);
}
.headSubject {
font-weight: 600;
}
.graph {
flex: none;
/* Leave room for the subject when the graph has many lanes: the lanes past it are cut off, not squeezed. */
max-width: calc(100% - min(120px, 50%));
fill: none;
stroke-width: 1.6;
overflow: visible;
clip-path: inset(-50% 0);
}
.refs {
flex: 0 1 auto;
/* Shrinks to the first label's icon when the graph leaves no room. */
min-width: 11px;
display: inline-flex;
align-items: center;
gap: var(--space-2);
max-width: 100%;
overflow: hidden;
margin-left: auto;
}
.commitText > .refs {
/* Keep ref names at their full width while leaving space for a short subject. */
flex: none;
max-width: calc(100% - var(--log-subject-min) - var(--space-1-5));
}
.commitText > .refsCompact {
flex: 0 1 auto;
max-width: calc(100% / 3);
}
.commitText:has(> .refsCompact) > .subject {
/* Protect a short subject while leaving room for compact reference names. */
flex: 0 1000 max-content;
min-width: auto;
width: min(75%, 24ch);
}
.commitText > .refs .ref {
font-size: var(--fs-small);
}
.refsCompact .ref {
min-width: 11px;
}
.refsLeft {
margin-left: 0;
}
.ref {
--tag-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 1.5h4.2l4.8 4.8-4.2 4.2-4.8-4.8z' fill='none' stroke='black' stroke-width='1.1' stroke-linejoin='round'/%3E%3Ccircle cx='4' cy='4' r='.9'/%3E%3C/svg%3E");
display: inline-flex;
align-items: center;
gap: var(--space-1);
font-size: var(--fs-ui);
color: var(--fg-secondary);
white-space: nowrap;
overflow: hidden;
min-width: 0;
}
.refText {
overflow: hidden;
text-overflow: ellipsis;
}
/* Outlined tag glyph in the ref's colour. */
.ref::before {
content: "";
flex: none;
width: 11px;
height: 11px;
background: var(--ref-color);
-webkit-mask: var(--tag-glyph) center / contain no-repeat;
mask: var(--tag-glyph) center / contain no-repeat;
}
.refHead {
--ref-color: var(--warning);
}
.refLocal {
--ref-color: var(--vcs-added);
}
.refRemote {
--ref-color: var(--syn-annotation);
}
.refTag {
--ref-color: var(--fg-subtle);
}
.message {
padding: 16px;
color: var(--fg-subtle);
text-align: center;
}
/* details */
.details {
height: 100%;
display: flex;
flex-direction: column;
min-width: 0;
}
.filesPane {
height: 100%;
display: flex;
flex-direction: column;
min-height: 0;
}
.detailsBar {
height: auto;
min-height: 32px;
flex-wrap: wrap;
padding-block: var(--space-0-5);
}
.detailsCount {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
padding-left: 4px;
color: var(--fg-subtle);
font-size: var(--fs-ui);
}
.fileTree {
flex: 1;
min-height: 0;
}
.fileRow {
display: flex;
align-items: center;
gap: var(--space-1-5);
min-width: 0;
white-space: nowrap;
overflow: hidden;
}
.fileIcon {
flex: none;
}
.iconStack {
position: relative;
display: inline-flex;
flex: none;
width: 16px;
height: 16px;
}
.iconOverlay {
position: absolute;
inset: 0;
pointer-events: none;
}
.fileName {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
}
.fileDir {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
color: var(--fg-subtle);
}
.lineStats {
display: inline-flex;
gap: var(--space-1-5);
flex: none;
font-variant-numeric: tabular-nums;
}
.fileRow .lineStats {
margin-left: auto;
}
.lineAdded {
color: var(--vcs-added);
}
.lineRemoved {
color: var(--vcs-deleted);
}
.messageBox {
height: 100%;
overflow: auto;
padding: 10px 12px;
border-top: 1px solid var(--border);
-webkit-user-select: text;
user-select: text;
font-size: var(--fs-ui);
}
.historyMessageBox {
padding: var(--space-2) var(--space-3);
border-top: 0;
}
.commitTooltip {
width: min(520px, calc(100vw - 32px));
max-height: 60vh;
overflow: auto;
padding: 12px;
white-space: normal;
user-select: text;
}
.revisionSource {
flex: 1;
min-height: 0;
height: 100%;
display: flex;
flex-direction: column;
}
/* Go to a merge commit's file: parent 1 | merge result | parent 2, each pane scrolling itself. */
.mergeDiff {
flex: 1;
height: 100%;
min-height: 0;
display: flex;
flex-direction: column;
}
.mergeDiffLabels {
flex: none;
height: var(--h-row);
display: grid;
grid-template-columns: 1fr 1fr 1fr;
border-bottom: 1px solid var(--border);
color: var(--fg-secondary);
font-size: var(--fs-small);
}
.mergeDiffLabels > span {
display: flex;
align-items: center;
min-width: 0;
padding: 0 12px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.mergeDiffLabels > span + span {
border-left: 1px solid var(--border);
}
.mergeDiffPanes {
flex: 1;
min-height: 0;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
}
.mergeDiffPane {
min-width: 0;
min-height: 0;
display: flex;
overflow: hidden;
}
.mergeDiffPane + .mergeDiffPane {
border-left: 1px solid var(--border);
}
.mergeDiffPane > :global(.cm-editor) {
flex: 1;
min-width: 0;
}
.messageText {
white-space: pre-wrap;
overflow-wrap: anywhere;
line-height: 1.5;
}
.subjectLine {
color: var(--fg-strong);
}
.fullMessage {
margin-top: var(--space-1-5);
color: var(--fg);
}
.meta {
font-size: var(--fs-small);
color: var(--fg-subtle);
line-height: 1.5;
overflow-wrap: anywhere;
}
.messageText + .meta {
margin-top: var(--space-2);
}
.meta + .meta,
.commitEntry .messageText + .meta {
margin-top: var(--space-0-5);
}
.commitEntry + .commitEntry {
margin-top: 10px;
padding-top: 10px;
border-top: 1px solid var(--border);
}
.detailRefGroup {
display: flex;
flex-wrap: wrap;
gap: var(--space-0-5) var(--space-2);
}
.detailRefGroup .ref {
align-items: baseline;
font-size: inherit;
max-width: 100%;
white-space: normal;
}
.hash {
font-family: var(--font-mono);
}
.messageText .linkButton,
.meta .linkButton {
max-width: 100%;
}
.linkButton {
color: var(--link);
font: inherit;
cursor: pointer;
}
.linkButton:hover {
color: var(--link-hover);
text-decoration: underline;
}
.consoleWrap {
flex: 1;
min-height: 0;
display: flex;
}
.consoleBar {
flex: none;
width: 28px;
display: flex;
flex-direction: column;
align-items: center;
padding-top: 4px;
border-right: 1px solid var(--border);
}
.console {
flex: 1;
min-width: 0;
overflow: auto;
padding: 6px 10px;
font-family: var(--font-mono);
font-size: var(--fs-small);
line-height: 18px;
-webkit-user-select: text;
cursor: default;
-webkit-user-select: text;
user-select: text;
}
.line {
white-space: pre-wrap;
word-break: break-all;
color: var(--fg-secondary);
cursor: text;
}
.line-cmd {
color: var(--fg-emphasis);
margin-top: 4px;
}
.line-err {
color: var(--danger);
}
.line-info {
color: var(--success);
}
.time {
color: var(--fg-faint);
}
.issueLink {
color: var(--link);
text-decoration: none;
cursor: pointer;
}
.issueLink:hover {
color: var(--link-hover);
text-decoration: underline;
}
.branchFilterPopup {
width: 360px;
display: flex;
flex-direction: column;
overflow: hidden;
}
.branchFilterSearch {
flex: none;
padding: 6px 8px;
border-bottom: 1px solid var(--border-popup);
}
.branchFilterList {
display: flex;
flex-direction: column;
min-height: 0;
padding: 4px 0;
box-sizing: content-box;
}
.branchFilterListBody {
flex: 1;
}
.branchFilterSection {
padding: 0 10px;
color: var(--fg-subtle);
font-size: var(--fs-small);
}
.branchFilterRow {
flex: 1;
min-width: 0;
display: flex;
align-items: center;
gap: var(--space-2);
}
/* A branch inside an opened Local / Remote group. */
.branchFilterNested {
padding-left: var(--tree-indent, 16px);
}
.branchFilterIcon {
flex: none;
color: var(--fg-subtle);
}
.branchFilterCurrent {
flex: none;
color: var(--accent);
}
.branchFilterLabel {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.branchFilterCheck {
flex: none;
color: var(--accent);
}
.branchFilterEmpty {
color: var(--fg-faint);
}
.branchFilterMore {
flex: none;
display: flex;
align-items: center;
padding: 6px 12px;
border-top: 1px solid var(--border-popup);
text-align: left;
}
.branchFilterMore:hover {
background: var(--bg-tree-hover);
}
/* Worktrees tab. */
.worktrees {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
gap: var(--space-1);
padding: 4px 6px;
}
.worktreeList {
flex: 1;
min-height: 0;
}
.colRepository {
flex: 0 1 100px;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--fg-secondary);
}
.shallowHistory {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: var(--space-1);
padding-inline: var(--space-2);
border-bottom: 1px solid var(--border);
color: var(--fg-muted);
}