Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.
TypeScript albumsexif-extractiongeocodinglive-photomotion-photophoto-galleryphoto-sharingwebgl-viewer
fix(ui): prevent upload overflow and refine console controls
Timothy Yind7b599b56444
diff --git a/apps/cloud/app/assets/cloud.css b/apps/cloud/app/assets/cloud.cssindex ed091c0f..03a85ae9 100644--- a/apps/cloud/app/assets/cloud.css+++ b/apps/cloud/app/assets/cloud.css@@ -1659,6 +1659,9 @@}.cf-upload-dropzone {width: 100%;+ min-width: 0;+ grid-template-columns: minmax(0, 1fr);+ white-space: normal;display: grid;justify-items: center;gap: 10px;@@ -1670,6 +1673,9 @@cursor: pointer;}.cf-upload-dropzone span {+ min-width: 0;+ max-width: 100%;+ overflow-wrap: anywhere;font-size: 12px;color: var(--ui-text-muted);}diff --git a/apps/cloud/app/components/CloudQuotaLabel.vue b/apps/cloud/app/components/CloudQuotaLabel.vueindex cbbdcd24..2b4d3199 100644--- a/apps/cloud/app/components/CloudQuotaLabel.vue+++ b/apps/cloud/app/components/CloudQuotaLabel.vue@@ -1,18 +1,22 @@<script setup lang="ts">defineProps<{ quota: string }>()+const open = ref(false)</script><template><span class="inline-flex items-center gap-1">{{ $t('cloud.billing.' + quota) }}<UTooltipv-if="quota === 'photos'"+ v-model:open="open"+ :disable-closing-trigger="true":ui="{ content: 'max-w-xs h-auto whitespace-normal' }"><UButtonvariant="ghost"color="neutral"type="button"- class="inline-flex shrink-0 items-center text-muted focus-visible:outline-2 focus-visible:outline-offset-2"+ class="cf-quota-info shrink-0 text-muted focus-visible:outline-2 focus-visible:outline-offset-2"+ @click="open = true":aria-label="$t('cloud.billing.photosQuotaHelp')"><UIcon@@ -28,3 +32,16 @@ defineProps<{ quota: string }>()</UTooltip></span></template>++<style scoped>+.cf-quota-info {+ display: inline-flex;+ width: 16px;+ height: 16px;+ min-height: 0;+ padding: 0;+ align-items: center;+ justify-content: center;+ vertical-align: middle;+}+</style>diff --git a/apps/cloud/app/components/CloudUploadDrawer.vue b/apps/cloud/app/components/CloudUploadDrawer.vueindex b4386ab1..704536b7 100644--- a/apps/cloud/app/components/CloudUploadDrawer.vue+++ b/apps/cloud/app/components/CloudUploadDrawer.vue@@ -94,9 +94,9 @@ async function startUpload() {:description="$t('cloud.messages.addPhotographsToYourLibraryJpegPngHeicAnd')"- :ui="{ footer: 'justify-end' }"+ :ui="{ footer: 'justify-end', header: 'pe-16', body: 'min-w-0' }"><template #body- ><div class="space-y-5">+ ><div class="min-w-0 space-y-5"><pv-if="message":role="failed ? 'alert' : 'status'"diff --git a/packages/saas-ui/app/assets/main.css b/packages/saas-ui/app/assets/main.cssindex 4772cc27..c41bd16b 100644--- a/packages/saas-ui/app/assets/main.css+++ b/packages/saas-ui/app/assets/main.css@@ -1,6 +1,7 @@@import 'tailwindcss';@import '@nuxt/ui';@import './tokens.css';+@import './scrollbars.css';@import './primitives.css' layer(components);@import './shell.css';@import './identity.css';diff --git a/packages/saas-ui/app/assets/scrollbars.css b/packages/saas-ui/app/assets/scrollbars.cssnew file mode 100644index 00000000..1535a8ef--- /dev/null+++ b/packages/saas-ui/app/assets/scrollbars.css@@ -0,0 +1,34 @@+/* Shared console and marketing scrollbars follow the active SaaS theme. */+html,+.cf-root * {+ scrollbar-width: thin;+ scrollbar-color: color-mix(in srgb, var(--muted-foreground) 40%, transparent) transparent;+}+html::-webkit-scrollbar,+.cf-root *::-webkit-scrollbar {+ width: 8px;+ height: 8px;+}+html::-webkit-scrollbar-track,+.cf-root *::-webkit-scrollbar-track,+html::-webkit-scrollbar-corner,+.cf-root *::-webkit-scrollbar-corner {+ background: transparent;+}+html::-webkit-scrollbar-thumb,+.cf-root *::-webkit-scrollbar-thumb {+ border: 2px solid transparent;+ border-radius: 999px;+ background: color-mix(in srgb, var(--muted-foreground) 40%, transparent);+ background-clip: padding-box;+}+html::-webkit-scrollbar-thumb:hover,+.cf-root *::-webkit-scrollbar-thumb:hover {+ background-color: color-mix(in srgb, var(--muted-foreground) 65%, transparent);+}+@media (forced-colors: active) {+ html,+ .cf-root * {+ scrollbar-color: auto;+ }+}