From f5cada0be8fd64c9bccd70720d25de215d65befe Mon Sep 17 00:00:00 2001 From: TAKAHASHI Shuuji Date: Sat, 18 Jan 2025 18:33:07 +0900 Subject: [PATCH] style: fix broken layout "more from" badge in card with square image (#3141) --- .../StatusPreviewCardMoreFromAuthor.vue | 3 +- components/status/StatusPreviewCardNormal.vue | 105 +++++++++--------- 2 files changed, 56 insertions(+), 52 deletions(-) diff --git a/components/status/StatusPreviewCardMoreFromAuthor.vue b/components/status/StatusPreviewCardMoreFromAuthor.vue index ffc1f368..ff93a498 100644 --- a/components/status/StatusPreviewCardMoreFromAuthor.vue +++ b/components/status/StatusPreviewCardMoreFromAuthor.vue @@ -11,7 +11,8 @@ defineProps<{ max-h-2xl flex gap-2 my-auto - bg-gray-300 + p-4 py-2 + light:bg-gray-3 dark:bg-gray-8 > More from diff --git a/components/status/StatusPreviewCardNormal.vue b/components/status/StatusPreviewCardNormal.vue index 98edce20..15d796ba 100644 --- a/components/status/StatusPreviewCardNormal.vue +++ b/components/status/StatusPreviewCardNormal.vue @@ -45,69 +45,72 @@ function loadAttachment() { bg-card hover:bg-active :class="{ - 'flex': isSquare, + 'flex flex-col': isSquare, 'p-4': root, 'rounded-lg': !root, }" target="_blank" external > -
- - + +
+
+
+
+ +
-
-
-
-