Links for ledger, and bank account picker

This commit is contained in:
2024-08-23 23:24:05 -07:00
parent ab5869b4fb
commit 4316ebb34a
5 changed files with 97 additions and 75 deletions

View File

@@ -4,8 +4,7 @@
[auto-ap.ssr.svg :as svg]))
(defn link-dropdown [links]
(if (> (count links) 0)
(when (> (count links) 0)
[:div {:x-data (hx/json {:popper nil
:show false})
"@click.outside" "show=false"
@@ -17,7 +16,7 @@
(com/badge {:color "blue"} (count links)))
[:div.divide-y.divide-gray-200.bg-white.rounded-lg.shadow.z-50 (hx/alpine-appear {:x-ref "tooltip" :x-show "show" :data-key "show"})
[:div {:class "p-3 overflow-y-auto text-sm text-gray-700 dark:text-gray-200"}
[:div.flex.flex-col.gap-y-2
[:div.flex.flex-col.gap-y-2 {:class "max-w-[24em]"}
(for [l links]
[:div.flex-initial
[:a {:href (:link l) :target "_blank"}