From 697b1394937c48a07b329d9bf4d5b7a78e8a9e34 Mon Sep 17 00:00:00 2001 From: daniel31x13 Date: Mon, 23 Oct 2023 01:55:44 -0400 Subject: [PATCH] fixed UI bug --- components/CollectionCard.tsx | 2 +- components/LinkCard.tsx | 2 +- pages/collections/[id].tsx | 2 +- pages/tags/[id].tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/CollectionCard.tsx b/components/CollectionCard.tsx index 63f08c4..2a0bb56 100644 --- a/components/CollectionCard.tsx +++ b/components/CollectionCard.tsx @@ -152,7 +152,7 @@ export default function CollectionCard({ collection, className }: Props) { if (target.id !== "expand-dropdown" + collection.id) setExpandDropdown(false); }} - className="absolute top-[3.2rem] right-5 z-10" + className="absolute top-[3.2rem] right-5 z-10 w-fit" /> ) : null} diff --git a/components/LinkCard.tsx b/components/LinkCard.tsx index b50299d..86637c0 100644 --- a/components/LinkCard.tsx +++ b/components/LinkCard.tsx @@ -240,7 +240,7 @@ export default function LinkCard({ link, count, className }: Props) { if (target.id !== "expand-dropdown" + link.id) setExpandDropdown(false); }} - className="absolute top-12 right-5 w-36" + className="absolute top-12 right-5 w-fit" /> ) : null} diff --git a/pages/collections/[id].tsx b/pages/collections/[id].tsx index 632ab4e..1c19ef0 100644 --- a/pages/collections/[id].tsx +++ b/pages/collections/[id].tsx @@ -220,7 +220,7 @@ export default function Index() { if (target.id !== "expand-dropdown") setExpandDropdown(false); }} - className="absolute top-8 right-0 z-10 w-40" + className="absolute top-8 right-0 z-10 w-fit" /> ) : null} diff --git a/pages/tags/[id].tsx b/pages/tags/[id].tsx index 1804a75..537b65f 100644 --- a/pages/tags/[id].tsx +++ b/pages/tags/[id].tsx @@ -93,7 +93,7 @@ export default function Index() { /> {renameTag ? ( <> -
+