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(cloud): wrap full photo quota tooltip content

Timothy Yin54c9587fd171
diff --git a/apps/cloud/app/components/CloudQuotaLabel.vue b/apps/cloud/app/components/CloudQuotaLabel.vue
index 1d027596..a147cbe5 100644
--- a/apps/cloud/app/components/CloudQuotaLabel.vue
+++ b/apps/cloud/app/components/CloudQuotaLabel.vue
@@ -6,7 +6,6 @@ defineProps<{ quota: string }>()
{{ $t('cloud.billing.' + quota) }}
<UTooltip
v-if="quota === 'photos'"
- :text="$t('cloud.billing.photosQuotaHelp')"
:ui="{ content: 'max-w-xs h-auto whitespace-normal' }"
>
<button
@@ -19,6 +18,11 @@ defineProps<{ quota: string }>()
class="size-3.5"
/>
</button>
+ <template #content>
+ <span class="block whitespace-normal break-words py-1 leading-relaxed">
+ {{ $t('cloud.billing.photosQuotaHelp') }}
+ </span>
+ </template>
</UTooltip>
</span>
</template>