Skip to content

Commit

Permalink
feat: refine popover menu styles
Browse files Browse the repository at this point in the history
  • Loading branch information
migalmoreno committed Dec 1, 2024
1 parent 38a13da commit 6f27466
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/frontend/tubo/layout/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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))]
Expand Down

0 comments on commit 6f27466

Please sign in to comment.