Skip to content

Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.

fix(Root): 调整最大列数

Timothy Yin609a62ff5efc
diff --git a/app/components/masonry/PhotoItem.client.vue b/app/components/masonry/PhotoItem.client.vue
index 19182d28..6d57ef6a 100644
--- a/app/components/masonry/PhotoItem.client.vue
+++ b/app/components/masonry/PhotoItem.client.vue
@@ -430,6 +430,7 @@ onUnmounted(() => {
class="inline-block w-full align-top break-inside-avoid transition-all duration-300 cursor-pointer select-none"
:style="{
marginBottom: `${ITEM_GAP}px`,
+ transform: 'translateZ(0)',
}"
@click="handleClick"
@mouseenter="handleMouseEnter"
diff --git a/app/components/masonry/Root.vue b/app/components/masonry/Root.vue
index 00d7b26a..ebf206aa 100644
--- a/app/components/masonry/Root.vue
+++ b/app/components/masonry/Root.vue
@@ -24,7 +24,7 @@ const displayPhotos = computed(() => {
const FIRST_SCREEN_ITEMS_COUNT = 30
const COLUMN_GAP = 4
const AUTO_COLUMN_WIDTH = 280
-const MAX_COLUMN_COUNT = 7
+const MAX_COLUMN_COUNT = 8
const MIN_COLUMN_COUNT = 2
// Reactive state