Files
openidea/src/features/analysis/Analysis.module.css
T
l0ng-ai 1a2adab237 fix(editor): align Reformat Code dialog groups and controls (#4611)
The Reformat Code dialog's option groups and controls were laid out ad hoc, so labels and checkboxes misaligned and the scope group wrapped awkwardly. The dialog now uses shared dialog fieldsets with aligned groups and controls, the same as the other analysis dialogs.
2026-11-20 07:12:25 +08:00

342 lines
5.6 KiB
CSS

.view {
height: 100%;
display: flex;
flex-direction: column;
min-height: 0;
}
.body {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
}
.body > * {
flex: 1;
min-height: 0;
}
.status {
flex: none;
display: flex;
align-items: center;
gap: var(--space-2);
height: var(--h-row);
padding: 0 10px;
border-bottom: 1px solid var(--border);
color: var(--fg-secondary);
font-size: var(--fs-small);
white-space: nowrap;
}
.statusText {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
}
.progress {
width: 160px;
flex: none;
margin-left: auto;
}
.row {
display: flex;
align-items: center;
gap: var(--space-1-5);
min-width: 0;
flex: 1;
white-space: nowrap;
}
.strong {
color: var(--fg-strong);
}
.muted {
flex: none;
color: var(--fg-subtle);
}
.count {
color: var(--fg-subtle);
margin-left: 4px;
}
.fileIcon {
flex: none;
color: var(--fg-muted);
}
.message {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
color: var(--fg);
}
.sev-error {
flex: none;
color: var(--danger);
}
.sev-warning {
flex: none;
color: var(--warning);
}
.sev-info {
flex: none;
color: var(--info);
}
/* Duplicates: groups on the left, fragments side by side on the right. */
.split {
flex: 1;
min-height: 0;
display: flex;
}
.groups {
width: 40%;
min-width: 200px;
display: flex;
flex-direction: column;
border-right: 1px solid var(--border);
}
.groups > * {
flex: 1;
min-height: 0;
}
.fragments {
flex: 1;
min-width: 0;
display: flex;
overflow-x: auto;
}
.fragment {
flex: 1 0 280px;
min-width: 0;
display: flex;
flex-direction: column;
border-right: 1px solid var(--border);
}
.fragment:last-child {
border-right: 0;
}
.fragmentHeader {
flex: none;
display: flex;
align-items: center;
gap: var(--space-1-5);
width: 100%;
height: var(--h-row);
padding: 0 8px;
border: 0;
border-bottom: 1px solid var(--border);
background: var(--bg-elev);
color: var(--fg);
font: inherit;
text-align: left;
white-space: nowrap;
overflow: hidden;
cursor: default;
}
.fragmentHeader:hover {
background: var(--bg-hover);
}
.code {
flex: 1;
min-height: 0;
margin: 0;
padding: 6px 8px;
overflow: auto;
font-family: var(--font-mono);
font-size: var(--fs-small);
line-height: 18px;
color: var(--fg-editor);
white-space: pre;
}
.lineNo {
display: inline-block;
width: 4ch;
margin-right: 1ch;
text-align: right;
color: var(--fg-line-number);
user-select: none;
}
/* Dialogs */
.form {
display: flex;
flex-direction: column;
gap: 10px;
padding: 14px;
}
.scope {
display: flex;
flex-direction: column;
gap: var(--space-0-5);
margin: 0;
padding: 0;
border: 0;
}
.fieldLabel {
padding: 0 0 4px;
color: var(--fg-secondary);
font-size: var(--fs-small);
}
.radioRow {
display: flex;
align-items: center;
gap: var(--space-2);
padding: 3px 0;
color: var(--fg);
cursor: default;
}
.radioRow input {
margin: 0;
accent-color: var(--accent);
}
.dirRow {
display: flex;
gap: var(--space-1-5);
padding: 4px 0 0 22px;
}
.grow {
flex: 1;
min-width: 0;
}
.fieldRow {
display: flex;
align-items: center;
gap: var(--space-2);
}
.reformatSubject {
overflow-wrap: anywhere;
font-size: var(--fs-ui);
font-weight: 600;
}
.reformatMask {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-2);
}
.reformatMaskInput {
flex: 1 1 12ch;
min-width: 0;
}
.languageSelect {
min-width: 180px;
}
.template {
width: 100%;
min-height: 96px;
resize: vertical;
padding: 6px 8px;
border: 1px solid var(--border-strong);
border-radius: var(--radius-control);
background: var(--bg-input);
color: var(--fg-editor);
font-family: var(--font-mono);
font-size: var(--fs-code);
line-height: 1.5;
}
.template:focus {
outline: none;
border-color: var(--accent);
}
.hint {
color: var(--fg-subtle);
font-size: var(--fs-small);
line-height: 1.5;
}
.error {
color: var(--danger);
font-size: var(--fs-small);
}
.number {
width: 80px;
}
/* Replace preview */
.previewList {
max-height: 360px;
overflow: auto;
margin: 14px;
padding: 0;
list-style: none;
border: 1px solid var(--border);
border-radius: var(--radius-small);
}
.previewItem {
display: flex;
align-items: flex-start;
gap: var(--space-2);
padding: 4px 8px;
border-bottom: 1px solid var(--border);
}
.previewItem:last-child {
border-bottom: 0;
}
.previewBody {
min-width: 0;
flex: 1;
display: flex;
flex-direction: column;
gap: var(--space-0-5);
}
.previewWhere {
color: var(--fg-subtle);
font-size: var(--fs-small);
}
.previewOld,
.previewNew {
margin: 0;
font-family: var(--font-mono);
font-size: var(--fs-small);
white-space: pre-wrap;
word-break: break-all;
}
.previewOld {
color: var(--fg-muted);
text-decoration: line-through;
}
.previewNew {
color: var(--vcs-added);
}
/* Inspection Results: tree on the left, problem details on the right. */
.panel {
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;
}
.panel > * {
flex: 1;
min-height: 0;
}
.excluded .message,
.excluded .strong {
opacity: 0.5;
text-decoration: line-through;
}
.details {
display: flex;
flex-direction: column;
gap: var(--space-2);
padding: 10px 12px;
overflow: auto;
border-left: 1px solid var(--border);
font-size: var(--fs-ui);
}
.detailsEmpty {
align-items: center;
justify-content: center;
color: var(--fg-faint);
}
.detailsTitle {
display: flex;
align-items: center;
gap: var(--space-1-5);
color: var(--fg-strong);
}
.detailsMessage {
margin: 0;
white-space: pre-wrap;
color: var(--fg);
}
.detailsActions {
display: flex;
gap: var(--space-1-5);
}