修复前端lint错误
Some checks failed
Dart CI / build (push) Successful in 35s
Web CI / lint-test-build (push) Failing after 28s

This commit is contained in:
2026-04-09 21:41:38 +08:00
parent 710a0b6f8e
commit e06816016d
3 changed files with 12 additions and 6 deletions

View File

@@ -51,7 +51,7 @@
</script>
<a
href={photoLink}
href={resolve(photoLink)}
class="photo-card"
class:photo-card-waterfall={waterfall}
class:photo-card-compact-waterfall={borderLess && waterfall}
@@ -197,6 +197,7 @@
padding: 0 var(--space-xs);
transition: visibility var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1);
}
.photo-name-hide {
display: none;
}

View File

@@ -101,7 +101,7 @@
{#key waterfall + '_' + borderLess + '_' + columnCount}
{#if waterfall}
<div class="photo-grid-waterfall" class:photo-grid-borderless={borderLess}>
{#each splitToColumns(getVisiblePhotos(), columnCount) as col}
{#each splitToColumns(getVisiblePhotos(), columnCount) as col (col)}
<div class="waterfall-column">
{#each col as photo (photo.id)}
<PhotoCard

View File

@@ -165,10 +165,15 @@
// 处理排序变化
function applySort() {
// 重置分页状态并导航到新 URL
goto(`${page.url.pathname}?page=1&pageSize=${PAGE_SIZE}&sort=${sortMode}&order=${sortOrder}`, {
replaceState: true,
keepFocus: true
});
goto(
resolve(
`${page.url.pathname}?page=1&pageSize=${PAGE_SIZE}&sort=${sortMode}&order=${sortOrder}`
),
{
replaceState: true,
keepFocus: true
}
);
}
/**