From 6f27466738e0b170fe957793855ec96c187a34c9 Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Sun, 1 Dec 2024 13:23:53 +0100 Subject: feat: refine popover menu styles --- src/frontend/tubo/layout/views.cljs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/frontend/tubo/layout/views.cljs b/src/frontend/tubo/layout/views.cljs index 7dbff55..b49f51d 100644 --- a/src/frontend/tubo/layout/views.cljs +++ b/src/frontend/tubo/layout/views.cljs @@ -145,7 +145,8 @@ [:span.whitespace-nowrap label]] classes ["relative" "flex" "items-center" "gap-x-3" "hover:bg-neutral-200" - "dark:hover:bg-stone-800" "py-2" "px-3" "rounded"]] + "dark:hover:bg-neutral-700" "py-2" "px-3" + "first:rounded-t" "last:rounded-b"]] (if link [:a {:href (:route link) @@ -160,7 +161,7 @@ (defn menu [active? items & {:keys [right top bottom left] :or {right "15px" top "0px"}}] (when-not (empty? (remove nil? items)) - [:ul.absolute.bg-neutral-100.dark:bg-neutral-900.border.border-neutral-300.dark:border-stone-700.rounded-t.rounded-b.z-20.p-2.flex.flex-col.text-neutral-800.dark:text-white + [:ul.absolute.bg-neutral-100.dark:bg-neutral-800.rounded-t.rounded-b.z-20.flex.flex-col.text-neutral-800.dark:text-white {:class (when-not active? "hidden") :style {:right right :left left :top top :bottom bottom}} (for [[i item] (map-indexed vector (remove nil? items))] -- cgit v1.2.3