aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2024-12-01 13:23:53 +0100
committerMiguel Ángel Moreno <mail@migalmoreno.com>2024-12-01 13:26:45 +0100
commit6f27466738e0b170fe957793855ec96c187a34c9 (patch)
treec86d6eeb0cd93d86ccb8affe908ac1c60f158c5d /src
parent38a13daeb39f81d58bf321eb2e0cedaf81de19b3 (diff)
feat: refine popover menu styles
Diffstat (limited to 'src')
-rw-r--r--src/frontend/tubo/layout/views.cljs5
1 files changed, 3 insertions, 2 deletions
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))]