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): identify social links with leading icons
Timothy Yin663c2507856d
diff --git a/apps/cloud/app/components/CloudSiteSettings.vue b/apps/cloud/app/components/CloudSiteSettings.vueindex 30fc1a7b..8f78c3d7 100644--- a/apps/cloud/app/components/CloudSiteSettings.vue+++ b/apps/cloud/app/components/CloudSiteSettings.vue@@ -54,12 +54,8 @@ const socialErrors = computed(() => {}})})-function socialLabel(value: string) {- try {- return resolveSocialPlatform(value.trim()).label- } catch {- return ''- }+function socialIcon(value: string) {+ return resolveSocialPlatform(value.trim()).icon}const iconError = ref(''),iconBusy = ref(false)@@ -342,16 +338,18 @@ async function save() {:key="index"class="cf-field">- <label :for="'social-link-' + index"- >{{ $t('cloud.presentation.slot', { number: index + 1 })- }}<small v-if="socialDraft[index] && !socialErrors[index]">- · {{ socialLabel(socialDraft[index]!) }}</small- ></label+ <label+ :for="'social-link-' + index"+ class="sr-only"+ >{{+ $t('cloud.presentation.slot', { number: index + 1 })+ }}</label><div class="cf-social-input-row"><CfInput:id="'social-link-' + index"v-model="socialDraft[index]"+ :leading-icon="socialIcon(socialDraft[index]!)"type="url"placeholder="https://…"maxlength="2048"