fix(download-history): use title for downloaded tooltip

This commit is contained in:
Will Miao
2026-04-13 20:26:40 +08:00
parent a95c518b30
commit 70cd3f4e1b
5 changed files with 77 additions and 43 deletions

View File

@@ -33,7 +33,6 @@
font-weight: 500;
white-space: nowrap;
flex-shrink: 0;
position: relative;
transform: translateZ(0);
will-change: transform;
}
@@ -43,34 +42,6 @@
font-size: 0.9em;
}
.downloaded-info {
display: none;
position: absolute;
top: 100%;
right: 0;
background: var(--card-bg);
border: 1px solid color-mix(in oklch, var(--badge-update-bg, #4a90e2) 50%, transparent);
border-radius: var(--border-radius-xs);
padding: var(--space-1);
margin-top: 4px;
font-size: 0.9em;
color: var(--text-color);
white-space: normal;
word-break: break-word;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
z-index: 100;
min-width: 240px;
max-width: 320px;
transform: translateZ(0);
position: fixed;
pointer-events: none;
}
.downloaded-badge:hover .downloaded-info {
display: block;
pointer-events: auto;
}
/* Early Access Badge */
.early-access-badge {
display: inline-flex;