From 570783cd2335e46513aca45a84df6e6e6f25ff50 Mon Sep 17 00:00:00 2001 From: Pouria Delfanazari Date: Mon, 28 Oct 2024 16:48:44 -0700 Subject: [PATCH] Adjust notification badge position, add edit feed button --- src/app/dashboard/feeds/loading.tsx | 4 ++-- src/app/dashboard/feeds/page.tsx | 9 ++++++--- src/components/feedback/badge/Badge.tsx | 4 ++-- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/app/dashboard/feeds/loading.tsx b/src/app/dashboard/feeds/loading.tsx index a28a88c2..8dfdd7e2 100644 --- a/src/app/dashboard/feeds/loading.tsx +++ b/src/app/dashboard/feeds/loading.tsx @@ -8,7 +8,7 @@ export default function Loading() {

My Feeds

-
+
@@ -16,7 +16,7 @@ export default function Loading() {

- Popular Feeds + Discover Feeds

diff --git a/src/app/dashboard/feeds/page.tsx b/src/app/dashboard/feeds/page.tsx index c4ec8693..ed3acfdf 100644 --- a/src/app/dashboard/feeds/page.tsx +++ b/src/app/dashboard/feeds/page.tsx @@ -22,8 +22,11 @@ export default function Page(props: Props) {

My Feeds

- - + + Edit feeds
}> @@ -34,7 +37,7 @@ export default function Page(props: Props) {

- Popular Feeds + Discover Feeds

diff --git a/src/components/feedback/badge/Badge.tsx b/src/components/feedback/badge/Badge.tsx index 8ec87605..fe2e1bd9 100644 --- a/src/components/feedback/badge/Badge.tsx +++ b/src/components/feedback/badge/Badge.tsx @@ -12,7 +12,7 @@ export default function Badge(props: Props) { case "block": return "block"; case "overlay": - return "absolute inline-flex items-center justify-center w-6 h-6"; + return "absolute inline-flex items-center justify-center w-5 h-5"; default: return "inline-flex items-center justify-center px-2 py-1.5"; } @@ -21,7 +21,7 @@ export default function Badge(props: Props) { const getPosition = () => { switch (position) { case "topRight": - return "-top-2 -end-3"; + return "-top-2 -end-1.5"; case "topLeft": return "top-0 start-0"; case "bottomRight":