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.

style(ui): update GlassButton styles for improved appearance

HoshinoSuzumib3d8717b6230
diff --git a/app/components/photo/InfoPanel.vue b/app/components/photo/InfoPanel.vue
index ebc851c3..fd8fdcff 100644
--- a/app/components/photo/InfoPanel.vue
+++ b/app/components/photo/InfoPanel.vue
@@ -456,6 +456,7 @@ const onTagClick = (tag: string) => {
icon="tabler:x"
variant="ghost"
color="neutral"
+ class="text-white"
size="sm"
@click="onClose"
/>
diff --git a/app/components/photo/Viewer.vue b/app/components/photo/Viewer.vue
index 882efb66..53f744ce 100644
--- a/app/components/photo/Viewer.vue
+++ b/app/components/photo/Viewer.vue
@@ -470,28 +470,22 @@ const swiperModules = [Navigation, Keyboard, Virtual]
<!-- 右侧按钮组 -->
<div class="flex items-center gap-2">
<!-- 信息按钮 - 在移动设备上显示 -->
- <button
+ <GlassButton
v-if="isMobile"
- type="button"
- class="pointer-events-auto flex size-8 items-center justify-center rounded-full text-white backdrop-blur-xl duration-200"
- :class="
- showExifPanel
- ? 'bg-white/30'
- : 'bg-black/30 hover:bg-black/40'
- "
+ icon="tabler:info-circle"
+ :class="!showExifPanel ? '' : 'bg-black/20 hover:bg-black/30 text-white'"
+ size="sm"
+ rounded
@click="showExifPanel = !showExifPanel"
- >
- <Icon name="tabler:info-circle" />
- </button>
+ />
<!-- 关闭按钮 -->
- <button
- type="button"
- class="pointer-events-auto flex size-8 items-center justify-center rounded-full text-white backdrop-blur-xl duration-200 bg-black/30 hover:bg-black/40"
+ <GlassButton
+ icon="tabler:x"
+ size="sm"
+ rounded
@click="emit('close')"
- >
- <Icon name="tabler:x" />
- </button>
+ />
</div>
</motion.div>
diff --git a/app/components/ui/GlassButton.vue b/app/components/ui/GlassButton.vue
index ccc8b163..2a604499 100644
--- a/app/components/ui/GlassButton.vue
+++ b/app/components/ui/GlassButton.vue
@@ -22,7 +22,7 @@ withDefaults(
)
const sizeClasses = {
- sm: 'h-10 min-w-10 text-sm',
+ sm: 'h-9 min-w-9 text-sm',
md: 'h-12 min-w-12 text-base',
lg: 'h-14 min-w-14 text-lg',
}
@@ -44,7 +44,7 @@ const iconSizeClasses = {
type="button"
:class="
twMerge(
- 'px-2.5 cursor-pointer pointer-events-auto font-medium flex items-center justify-center gap-1.5 bg-white/80 text-neutral-700 backdrop-blur-md border border-neutral-100 shadow-lg shadow-neutral-300/25 dark:bg-neutral-500/50 dark:text-white/80 dark:border-white/10 dark:shadow-black/25 overflow-hidden',
+ 'px-2 cursor-pointer pointer-events-auto font-medium flex items-center justify-center gap-1.5 bg-white/30 text-neutral-700 backdrop-blur-md border border-neutral-100 shadow-md shadow-neutral-300/20 dark:bg-neutral-700/30 dark:text-white/80 dark:border-white/10 dark:shadow-black/20 overflow-hidden',
sizeClasses[$props.size!],
$props.rounded ? 'rounded-full' : 'rounded-xl',
$props.class,