Файли
openidea/e2e/usagesPopup.fixture.css
T
tongkangwangтаchiyanking 10e399cbec fix(code-insight): fit the Show Usages filename column to its content (#7571)
The Show Usages filename column had a fixed cap, so widening the popup did
not reveal more of a truncated filename. The column now takes the width of
the longest filename among all results (measured off-screen, so virtualized
rows, speed search and filters keep the columns aligned), capped at 176px
(38% when narrow) or a fifth of a wider popup; the code column gets the rest.
It is remeasured when results or font metrics change. Same-named files keep
their directory captions.

Co-authored-by: chiyanking <[email protected]>
2026-12-03 00:56:09 +08:00

88 рядки
1.6 KiB
CSS

.usages-demo-controls {
position: fixed;
right: 20px;
bottom: 24px;
left: 20px;
z-index: 100;
max-height: 38vh;
overflow: auto;
padding: 14px 18px;
color: var(--fg-strong);
background: var(--bg-popup);
border: 1px solid var(--border-popup);
border-radius: 12px;
box-shadow: var(--shadow-popup);
}
.usages-demo-heading,
.usages-demo-actions {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 10px;
}
.usages-demo-heading span {
color: var(--fg-muted);
}
.usages-demo-actions {
margin-top: 10px;
}
.usages-demo-actions button,
.usages-demo-actions select {
padding: 6px 12px;
color: var(--fg-strong);
font: inherit;
background: var(--bg-elev);
border: 1px solid var(--border-popup);
border-radius: 6px;
cursor: pointer;
}
.usages-demo-actions button:hover {
background: var(--accent-soft);
}
.usages-demo-actions button[aria-pressed="true"] {
color: var(--link);
background: var(--accent-soft);
border-color: var(--link);
}
.usages-demo-actions label {
display: flex;
align-items: center;
gap: 6px;
}
.usages-demo-hint {
margin: 10px 0 0;
color: var(--fg-muted);
}
.usages-demo-anchor {
position: fixed;
z-index: 110;
width: 8px;
height: 8px;
background: #ed8c47;
border-radius: 50%;
transform: translate(-50%, -50%);
pointer-events: none;
}
.usages-demo-pick {
position: fixed;
inset: 0;
z-index: 1200;
padding: 0;
color: var(--fg-strong);
font: inherit;
font-size: 20px;
background: color-mix(in srgb, var(--bg-frame) 80%, transparent);
border: 0;
cursor: crosshair;
}