fix(ui): remove hover background flicker on download button
Hide the square button background on hover when downloading (the ring needs no bg). Also hide the download indicator completely when idle (opacity 0 + pointer-events none) instead of showing a faint ghost that triggers hover artifacts across all track row buttons.
This commit is contained in:
1 parent
b3573af497
commit
7631ed3e20
2 files changed
+5
-3
No files matched your search
@@ -130,14 +130,13 @@
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.download-button:hover:not(:disabled) {
|
||||
.download-button:hover:not(:disabled):not(.downloading) {
|
||||
color: var(--text-primary);
|
||||
background: var(--bg-hover);
|
||||
}
|
||||
|
||||
.download-button:disabled {
|
||||
cursor: default;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.download-button.ready {
|
||||
|
||||
@@ -577,16 +577,19 @@
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 28px;
|
||||
opacity: 0.3;
|
||||
opacity: 0;
|
||||
transition: opacity 150ms ease;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.download-indicator.has-download {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.track-row:hover .download-indicator {
|
||||
opacity: 0.6;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.track-row:hover .download-indicator.has-download,
|
||||
|
||||
Reference in new issue
Block a user