дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-05 17:47:08 +02:00
Compare with Branch or Revision only handled one file, so reviewing a folder meant opening each file. Folders, the project root and multiple selections now open a changes tree against the chosen revision, with per-file diffs on demand. A single file keeps its direct diff. Each path resolves against its own repository through the root registry. In a multi-repo workspace the picker offers shared revisions such as "main in 3 repositories" as well as per-repository ones, results are grouped by repository, and content outside any repository or a repository missing the revision is stated in the result. Listing is cancellable and off the UI thread, includes worktree and untracked changes, and a rename leaving the selection shows as a delete. Show Diff on folders reuses the same tree. Verified on macOS, and against a remote host over the server protocol. A remote window, Windows and Linux were not run. Fixes #567
331 рядки
5.9 KiB
CSS
331 рядки
5.9 KiB
CSS
.form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
padding: 14px;
|
|
}
|
|
.fieldLabel {
|
|
color: var(--fg-secondary);
|
|
font-size: var(--fs-small);
|
|
}
|
|
.error {
|
|
color: var(--danger);
|
|
font-size: var(--fs-small);
|
|
}
|
|
.hint {
|
|
color: var(--fg-subtle);
|
|
font-size: var(--fs-small);
|
|
line-height: 1.5;
|
|
}
|
|
.section {
|
|
padding: 10px 14px 4px;
|
|
color: var(--fg-subtle);
|
|
font-size: var(--fs-small);
|
|
}
|
|
.radioRow {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
padding: 4px 0;
|
|
color: var(--fg);
|
|
cursor: default;
|
|
}
|
|
.radioRow input {
|
|
margin: 2px 0 0;
|
|
accent-color: var(--accent);
|
|
}
|
|
.radioText {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
.fileList {
|
|
max-height: 260px;
|
|
overflow: auto;
|
|
margin: 0 14px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-small);
|
|
}
|
|
.fileRow {
|
|
height: var(--h-row);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 0 8px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
}
|
|
.fileRow:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
.fileName {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.fileDir {
|
|
color: var(--fg-subtle);
|
|
font-size: var(--fs-small);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.grow {
|
|
flex: 1;
|
|
}
|
|
.mono {
|
|
font-family: var(--font-mono);
|
|
font-size: var(--fs-small);
|
|
}
|
|
.commitRow {
|
|
height: var(--h-row);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 0 8px;
|
|
white-space: nowrap;
|
|
}
|
|
.commitHash {
|
|
color: var(--fg-subtle);
|
|
font-family: var(--font-mono);
|
|
font-size: var(--fs-small);
|
|
}
|
|
.commitSubject {
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
color: var(--fg);
|
|
}
|
|
.commitMeta {
|
|
color: var(--fg-subtle);
|
|
font-size: var(--fs-small);
|
|
}
|
|
.empty {
|
|
padding: 12px;
|
|
color: var(--fg-faint);
|
|
text-align: center;
|
|
}
|
|
.boxList {
|
|
flex: 1;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-small);
|
|
}
|
|
/* Push dialogs: the list fills the body so a resizable window shows more rows. */
|
|
.pushTreeWrap {
|
|
flex: 1;
|
|
min-height: 220px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 14px;
|
|
}
|
|
.pushListWrap {
|
|
flex: 1;
|
|
min-height: 180px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 0 14px 14px;
|
|
}
|
|
.cloneDirRow {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
.cloneDirInput {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
.cloneProgress {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
padding-top: 4px;
|
|
min-width: 0;
|
|
}
|
|
.cloneProgress > span {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.todoList {
|
|
margin: 8px 0 0;
|
|
padding-left: 18px;
|
|
white-space: normal;
|
|
}
|
|
.linkButton {
|
|
padding: 0;
|
|
border: none;
|
|
background: none;
|
|
color: var(--link);
|
|
font: inherit;
|
|
cursor: pointer;
|
|
}
|
|
.linkButton:hover {
|
|
color: var(--link-hover);
|
|
text-decoration: underline;
|
|
}
|
|
/* Operation in progress (rebase, merge…) above the Commit tool window's changes. */
|
|
.banner {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 2px 10px;
|
|
min-height: 28px;
|
|
padding: 4px 10px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--bg-banner-warning, color-mix(in srgb, var(--warning) 12%, transparent));
|
|
color: var(--fg);
|
|
font-size: var(--fs-small);
|
|
}
|
|
.bannerText {
|
|
flex: 1 0 auto;
|
|
max-width: calc(100% - 24px);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.linkButton:disabled {
|
|
color: var(--fg-faint);
|
|
cursor: default;
|
|
text-decoration: none;
|
|
}
|
|
.textarea {
|
|
resize: vertical;
|
|
min-height: 48px;
|
|
padding: 4px 8px;
|
|
border: 1px solid var(--border-input, var(--border));
|
|
border-radius: var(--radius-small);
|
|
background: var(--bg-input);
|
|
color: var(--fg);
|
|
font: inherit;
|
|
}
|
|
.textarea:focus {
|
|
outline: none;
|
|
border-color: var(--focus-ring);
|
|
}
|
|
/* Interactive rebase dialog. */
|
|
.rebaseList {
|
|
max-height: 360px;
|
|
overflow: auto;
|
|
margin: 0 14px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-small);
|
|
}
|
|
.rebaseRow {
|
|
min-height: var(--h-row);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 2px 6px;
|
|
white-space: nowrap;
|
|
}
|
|
.rebaseRow:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
.rebaseAction {
|
|
width: 120px;
|
|
flex: none;
|
|
}
|
|
.rebaseMessage {
|
|
flex: 1;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
}
|
|
/* Push dialog: the editable target branch. */
|
|
.targetInput {
|
|
width: 220px;
|
|
margin-left: 6px;
|
|
}
|
|
.choiceList {
|
|
max-height: 240px;
|
|
overflow: auto;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-small);
|
|
}
|
|
/* Pull / Merge / Rebase dialogs. */
|
|
.fieldRow {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
min-width: 0;
|
|
}
|
|
.optionGrid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 4px 12px;
|
|
}
|
|
/* Manage Remotes / Worktrees lists. */
|
|
.manageBar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
}
|
|
.manageRow {
|
|
width: 100%;
|
|
height: var(--h-row);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 0 8px;
|
|
border: none;
|
|
background: none;
|
|
color: var(--fg);
|
|
font: inherit;
|
|
text-align: left;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
cursor: default;
|
|
}
|
|
.manageRow:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
.manageRowSelected,
|
|
.manageRowSelected:hover {
|
|
background: var(--bg-list-selected);
|
|
}
|
|
|
|
.comparison {
|
|
display: flex;
|
|
height: min(520px, 65vh);
|
|
min-height: 180px;
|
|
padding: 0 12px 12px;
|
|
gap: 10px;
|
|
}
|
|
.comparisonTree {
|
|
flex: 1;
|
|
min-width: 0;
|
|
border: 1px solid var(--border);
|
|
}
|
|
.comparisonWithDiff .comparisonTree {
|
|
flex: 0 0 30%;
|
|
}
|
|
.comparisonDiff {
|
|
flex: 1;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
border: 1px solid var(--border);
|
|
}
|
|
.compareNotice {
|
|
padding: 6px 14px;
|
|
color: var(--fg-subtle);
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.compareAdded {
|
|
color: var(--vcs-added);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.compareRemoved {
|
|
color: var(--vcs-deleted);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
@media (max-width: 760px) {
|
|
.comparisonWithDiff {
|
|
flex-direction: column;
|
|
height: 65vh;
|
|
}
|
|
.comparisonWithDiff .comparisonTree {
|
|
flex: 0 0 30%;
|
|
min-height: 90px;
|
|
}
|
|
}
|