From 6bcc0023cd2a0bb1fd46ad259b162726891a4eab Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Sat, 11 May 2024 07:09:48 -0600 Subject: [PATCH] style the sharing screen (plus other fixes) --- src/components/GiftedDialog.vue | 2 +- src/components/QuickNav.vue | 10 +++--- src/views/GiftedDetails.vue | 60 ++++++++++++++++++++++----------- src/views/SharedPhotoView.vue | 54 ++++++++++++++++++++--------- 4 files changed, 86 insertions(+), 40 deletions(-) diff --git a/src/components/GiftedDialog.vue b/src/components/GiftedDialog.vue index 2ad08b0..9dd8f01 100644 --- a/src/components/GiftedDialog.vue +++ b/src/components/GiftedDialog.vue @@ -15,7 +15,7 @@ class="rounded-l border border-r-0 border-slate-400 bg-slate-200 text-center text-blue-500 px-2 py-2 w-20" @click="changeUnitCode()" > - {{ libsUtil.UNIT_SHORT[unitCode] }} + {{ libsUtil.UNIT_SHORT[unitCode] || unitCode }}
- + @@ -28,7 +28,7 @@ :to="{ name: 'discover' }" class="block text-center py-3 px-1" > - + @@ -44,7 +44,7 @@ :to="{ name: 'projects' }" class="block text-center py-3 px-1" > - + @@ -60,7 +60,7 @@ :to="{ name: 'contacts' }" class="block text-center py-3 px-1" > - + @@ -76,7 +76,7 @@ :to="{ name: 'account' }" class="block text-center py-3 px-1" > - + diff --git a/src/views/GiftedDetails.vue b/src/views/GiftedDetails.vue index a37c2e3..9d53398 100644 --- a/src/views/GiftedDetails.vue +++ b/src/views/GiftedDetails.vue @@ -5,10 +5,13 @@
-
+

@@ -31,7 +34,7 @@ class="rounded-l border border-r-0 border-slate-400 bg-slate-200 text-center text-blue-500 px-2 py-2 w-20" @click="changeUnitCode()" > - {{ libsUtil.UNIT_SHORT[unitCode] }} + {{ libsUtil.UNIT_SHORT[unitCode] || unitCode }}
-
+
- Choose the purpose of this image: -
- -
- -
- +
Choose how to use this image
+
+ + + +
- Shared Image +
+ Shared Image +
-
+

No image found.

@@ -93,7 +112,12 @@ export default class SharedPhotoView extends Vue { if (url) { this.$router.push({ name: "gifted-details", - query: { imageUrl: url }, + query: { + destinationNameAfter: "home", + hideBackButton: true, + imageUrl: url, + recipientDid: this.activeDid, + }, }); } });