Файли
openidea/src/features/analysis/Analysis.module.css
T
l0ng-ai f325e8c9d6 Align Inspection Results panes and actions (#4734)
Inspection Results aligns its result tree, detail pane and action toolbar: the panes keep usable widths and the actions stay grouped and labelled for assistive technology.
2026-11-20 16:41:33 +08:00

386 рядки
6.4 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;
font-size: var(--fs-ui);
}
.panel > * {
flex: 1;
min-height: 0;
}
.resultLabel,
.resultDirectory {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
}
.resultMeta {
flex: none;
color: var(--fg-subtle);
font-size: var(--fs-small);
}
.resultDirectory {
flex-shrink: 1;
max-width: 35%;
}
.excluded .message,
.excluded .strong {
opacity: 0.5;
text-decoration: line-through;
}
.details {
display: flex;
flex-direction: column;
}
.detailsBody {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
gap: var(--space-2);
padding: var(--space-2) var(--space-3);
overflow: auto;
overflow-wrap: anywhere;
}
.detailsEmpty {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
padding: var(--space-3);
color: var(--fg-faint);
text-align: center;
}
.detailsTitle {
display: flex;
align-items: baseline;
gap: var(--space-1-5);
color: var(--fg-strong);
}
.detailsLocation {
color: var(--fg-subtle);
font-size: var(--fs-small);
}
.detailsCoordinates {
white-space: nowrap;
}
.detailsMessage {
margin: 0;
white-space: pre-wrap;
color: var(--fg);
}
.detailsActions {
flex: none;
display: flex;
flex-wrap: wrap;
gap: var(--space-1-5);
padding: var(--space-1) var(--space-3);
border-bottom: 1px solid var(--border);
}
.detailAction {
max-width: 100%;
height: auto;
min-height: var(--h-control);
white-space: normal;
line-height: 1.25;
overflow-wrap: anywhere;
}