Files
fusion/packages/dashboard/app/components/IssueMentionPopup.css
gsxdsm 2d2024fb0f fix(dashboard): unfreeze animations broken by transition tokens used as durations
Spinners, status-dot pulses, and entrance animations across the dashboard
rendered frozen: transition tokens (--transition-slow: 0.3s ease) bundle a
duration AND an easing, and 15 animation declarations reused them as bare
durations. Substituting "0.3s ease" next to an explicit easing (linear,
ease-in-out, ease-out) — or inside calc() — makes the declaration invalid at
computed-value time, which per spec resolves the entire property to
animation: none with no console error.

- add duration-only tokens (--duration-instant/fast/normal/slow) and derive
  the --transition-* tokens from them so the two cannot drift
- switch all 15 broken animation declarations across 14 CSS files to the
  duration tokens, preserving effective durations
- add animation-duration-tokens.css.test.ts: sweeps every app CSS file and
  fails on transition-token-as-duration, calc() over a transition token, and
  transition token in animation-duration

Verified in a real browser against the production build: previously frozen
.status-dot--connecting and calc-based NodesView spinners now report running
animations; transition shorthands still resolve to "0.15s / ease".

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-03 19:48:40 -07:00

98 lines
2.0 KiB
CSS

.issue-mention-popup {
position: absolute;
z-index: 250;
background: var(--surface);
border: var(--space-xs) solid var(--border);
border-radius: var(--radius-md);
box-shadow: var(--shadow-lg);
min-width: calc(var(--space-xl) * 9);
max-width: calc(var(--space-xl) * 14);
max-height: calc(var(--space-xl) * 10);
overflow-y: auto;
padding: var(--space-xs) 0;
}
.issue-mention-popup-list {
list-style: none;
margin: 0;
padding: 0;
}
.issue-mention-popup-item {
display: flex;
flex-direction: column;
gap: var(--space-xs);
padding: var(--space-sm) var(--space-md);
cursor: pointer;
}
.issue-mention-popup-item:hover {
background: var(--card-hover);
}
.issue-mention-popup-item--selected {
background: color-mix(in srgb, var(--todo) 15%, transparent);
}
.issue-mention-popup-item-main {
display: flex;
align-items: center;
gap: var(--space-sm);
}
.issue-mention-popup-number {
font-family: var(--font-mono);
color: var(--text);
}
.issue-mention-popup-title {
color: var(--text);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.issue-mention-popup-meta {
display: flex;
align-items: center;
gap: var(--space-xs);
}
.issue-mention-popup-repository {
color: var(--text-muted);
font-size: var(--space-md);
}
.issue-mention-popup-empty,
.issue-mention-popup-loading {
padding: var(--space-lg) var(--space-md);
color: var(--text-muted);
text-align: center;
}
.issue-mention-popup-loading {
display: flex;
justify-content: center;
}
.issue-mention-popup-loading .spinner {
width: var(--space-lg);
height: var(--space-lg);
border: calc(var(--space-xs) / 2) solid var(--border);
border-top-color: var(--text-muted);
border-radius: 50%;
animation: spin var(--duration-slow) linear infinite;
}
@media (max-width: 768px) {
.issue-mention-popup {
left: var(--space-md) !important;
right: var(--space-md);
top: auto !important;
bottom: calc(var(--space-xl) * 3);
max-width: none;
width: auto;
max-height: calc(var(--space-xl) * 12);
}
}