From b2d6033da3169e7e6b80c36a798950d0703fc6de Mon Sep 17 00:00:00 2001 From: Nexmoe <16796652+nexmoe@users.noreply.github.com> Date: Thu, 2 May 2024 11:03:09 +0800 Subject: [PATCH 1/3] feat: Adjust image width to 400px in Gallery and Image components --- components/module/Gallery.vue | 2 +- components/module/Image.vue | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/components/module/Gallery.vue b/components/module/Gallery.vue index 7f0d170..09942f6 100644 --- a/components/module/Gallery.vue +++ b/components/module/Gallery.vue @@ -41,7 +41,7 @@ const props = defineProps() :alt="module.title" referrerpolicy="no-referrer" loading="lazy" - :width="`600px`" + :width="`400px`" />

diff --git a/components/module/Image.vue b/components/module/Image.vue index 8da98d1..7286e5f 100644 --- a/components/module/Image.vue +++ b/components/module/Image.vue @@ -38,8 +38,7 @@ const text = computed(() => extractTextFromHTML(props.module.content)) :alt="module.title" referrerpolicy="no-referrer" loading="lazy" - :width="`${module.imageWidth}px`" - :height="`${module.imageHeight}px`" + :width="`400px`" />

From 34b6f5c3aadc70160f31065b19f2a8ee715d7f96 Mon Sep 17 00:00:00 2001 From: Nexmoe <16796652+nexmoe@users.noreply.github.com> Date: Thu, 2 May 2024 12:42:40 +0800 Subject: [PATCH 2/3] refactor: Update padding in Image.vue component Changed padding in the container div to include padding on the top and bottom for better spacing consistency. --- components/module/Image.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/module/Image.vue b/components/module/Image.vue index 7286e5f..d20d737 100644 --- a/components/module/Image.vue +++ b/components/module/Image.vue @@ -42,7 +42,7 @@ const text = computed(() => extractTextFromHTML(props.module.content)) /> -
+

Date: Thu, 2 May 2024 13:22:17 +0800 Subject: [PATCH 3/3] refactor: Update image sizes and link icon source - Decrease image width to 500px in Gallery.vue - Update LinkIcon source to unavatar.io in LinkIcon.vue - Remove rounded styling from link icon in Image.vue --- components/LinkIcon.vue | 4 ++-- components/module/Gallery.vue | 4 ++-- components/module/Image.vue | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/LinkIcon.vue b/components/LinkIcon.vue index 5cfce7e..21233ee 100644 --- a/components/LinkIcon.vue +++ b/components/LinkIcon.vue @@ -7,14 +7,14 @@ const props = defineProps() function getOrigin(url: string) { const urlx = new URL(url) - return urlx.origin.toString() + return urlx.host.toString() }