perf: optimize UI rendering and event lifecycle

This commit is contained in:
Diocrafts
2026-02-18 10:53:43 +01:00
parent f661282962
commit 0d7c8bc019
28 changed files with 1832 additions and 766 deletions
+5 -15
View File
@@ -100,24 +100,14 @@
/* ── Star badge on file/folder cards (normal view) ── */
/* Grid view: star below the checkbox */
/* Grid view: keep interactive star button behavior from style.css */
.file-card .favorite-star {
position: absolute;
top: 10px;
right: 38px;
font-size: 14px;
color: #ffc107;
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
z-index: 5;
pointer-events: none;
[dir='rtl'] & {
right: unset;
left: 38px;
}
pointer-events: auto;
z-index: 12;
}
.file-card .favorite-star.active i {
.file-card .favorite-star.active i,
.file-card .favorite-star.active svg {
animation: favorite-pulse 0.3s ease;
}