дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-03 16:51:16 +02:00
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]>
88 рядки
1.6 KiB
CSS
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;
|
|
}
|