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.

chore(style): fix tailwindcss warnings

Timothy Yine3ae8a16aaeb
diff --git a/app/components/map/ClusterPin.vue b/app/components/map/ClusterPin.vue
index a658b355..5144703d 100644
--- a/app/components/map/ClusterPin.vue
+++ b/app/components/map/ClusterPin.vue
@@ -84,7 +84,7 @@ const sizeDelta = computed(() => {
class="h-full w-full object-cover opacity-50"
/>
<div
- class="absolute inset-0 bg-gradient-to-br from-blue/40 to-purple/60 dark:from-blue/60 dark:to-purple/80"
+ class="absolute inset-0 bg-linear-to-br from-blue/40 to-purple/60 dark:from-blue/60 dark:to-purple/80"
/>
</div>
@@ -102,7 +102,7 @@ const sizeDelta = computed(() => {
}"
>
<div
- class="absolute inset-0 rounded-full bg-gradient-to-br from-white/10 to-white/5"
+ class="absolute inset-0 rounded-full bg-linear-to-br from-white/10 to-white/5"
/>
<!-- Cluster count -->
diff --git a/app/components/masonry/item/Photo.vue b/app/components/masonry/item/Photo.vue
index ba3c614a..c337eebd 100644
--- a/app/components/masonry/item/Photo.vue
+++ b/app/components/masonry/item/Photo.vue
@@ -563,7 +563,7 @@ onUnmounted(() => {
<!-- Photo info overlay (bottom) -->
<motion.div
v-show="shouldShowInfoOverlay"
- class="absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/60 to-transparent p-3"
+ class="absolute bottom-0 left-0 right-0 bg-linear-to-t from-black/60 to-transparent p-3"
:initial="{ y: '100%', opacity: 0 }"
:animate="{
y: shouldShowInfoOverlay && isHovering && !isMobile ? 0 : '100%',
diff --git a/app/components/photo/ShareModal.vue b/app/components/photo/ShareModal.vue
index 4bba8f7c..5a62bf56 100644
--- a/app/components/photo/ShareModal.vue
+++ b/app/components/photo/ShareModal.vue
@@ -370,7 +370,7 @@ defineShortcuts({
:animate="{ opacity: 1 }"
:exit="{ opacity: 0 }"
:transition="{ duration: 0.2 }"
- class="fixed inset-0 z-[60] flex items-center justify-center bg-black/50 backdrop-blur-sm"
+ class="fixed inset-0 z-60 flex items-center justify-center bg-black/50 backdrop-blur-sm"
@click="handleBackdropClick"
>
<motion.div
@@ -493,7 +493,7 @@ defineShortcuts({
<!-- Loading indicator -->
<div
v-if="ogImageLoading"
- class="flex items-center justify-center bg-neutral-100/50 dark:bg-neutral-700/50 aspect-[2/1]"
+ class="flex items-center justify-center bg-neutral-100/50 dark:bg-neutral-700/50 aspect-2/1"
>
<div class="flex flex-col items-center gap-2">
<Icon
@@ -511,7 +511,7 @@ defineShortcuts({
<!-- Error state -->
<div
v-else-if="ogImageError"
- class="flex items-center justify-center bg-neutral-100/50 dark:bg-neutral-700/50 aspect-[2/1]"
+ class="flex items-center justify-center bg-neutral-100/50 dark:bg-neutral-700/50 aspect-2/1"
>
<div class="flex flex-col items-center gap-2">
<Icon
@@ -532,7 +532,7 @@ defineShortcuts({
:key="`og-image-${props.photo.id}-${Date.now()}`"
:src="ogImageUrl"
:alt="$t('ui.action.share.ogImage.alt')"
- class="w-full h-auto aspect-[2/1] object-cover rounded"
+ class="w-full h-auto aspect-2/1 object-cover rounded"
loading="eager"
@load="handleOgImageLoad"
@error="handleOgImageError"
diff --git a/app/components/ui/UploadQueueItem.vue b/app/components/ui/UploadQueueItem.vue
index 86aae9db..ec8cbe37 100644
--- a/app/components/ui/UploadQueueItem.vue
+++ b/app/components/ui/UploadQueueItem.vue
@@ -204,7 +204,7 @@ const generateParticleStyle = (index: number) => {
<div class="flex items-center gap-3 flex-1 min-w-0">
<!-- 文件图标 -->
<motion.div
- class="relative flex-shrink-0"
+ class="relative shrink-0"
:transition="{
duration: uploadingFile.status === 'processing' ? 2 : 0.3,
repeat: uploadingFile.status === 'processing' ? Infinity : 0,
diff --git a/app/pages/dashboard/logs.vue b/app/pages/dashboard/logs.vue
index 58df9efc..44cb52f1 100644
--- a/app/pages/dashboard/logs.vue
+++ b/app/pages/dashboard/logs.vue
@@ -462,7 +462,7 @@ onUnmounted(() => {
<div class="flex items-start space-x-3 text-sm">
<!-- 时间戳 -->
<span
- class="text-neutral-400 dark:text-neutral-500 text-xs whitespace-nowrap min-w-0 flex-shrink-0 mt-0.5"
+ class="text-neutral-400 dark:text-neutral-500 text-xs whitespace-nowrap min-w-0 shrink-0 mt-0.5"
>
{{ $dayjs(log.date).format('HH:mm:ss.SSS') }}
</span>
@@ -483,7 +483,7 @@ onUnmounted(() => {
<!-- 日志内容 -->
<div class="flex-1 min-w-0">
<span
- class="whitespace-pre-wrap break-words"
+ class="whitespace-pre-wrap wrap-break-word"
v-html="highlightSearch(formatLogArgs(log.args))"
></span>
</div>
@@ -491,7 +491,7 @@ onUnmounted(() => {
<!-- 标签 -->
<span
v-if="log.tag"
- class="text-xs whitespace-nowrap flex-shrink-0 truncate text-neutral-400/80"
+ class="text-xs whitespace-nowrap shrink-0 truncate text-neutral-400/80"
>
{{ log.tag }}
</span>