Apply clsx

This commit is contained in:
Akira Tempaku 2025-05-19 23:46:44 +09:00
parent e8a5cc745f
commit 72355f3053
Signed by: paku
GPG key ID: 5B4E8402BCC50607
3 changed files with 5 additions and 7 deletions

View file

@ -17,7 +17,7 @@
("hsx" .
(:class qlot/source/git:source-git
:initargs (:remote-url "https://github.com/skyizwhite/hsx.git")
:version "git-4ff1c97e3ff727aa332995f5be4dcfb138a45d5f"))
:version "git-22001ef3e229ce9cfb52d3ea30a3b70460dbff04"))
("ningle-fbr" .
(:class qlot/source/git:source-git
:initargs (:remote-url "https://github.com/skyizwhite/ningle-fbr.git")

View file

@ -46,9 +46,8 @@
:class "h-1 w-8 rounded-full bg-black transition duration-400"
:|:class| "open && '-rotate-45 -translate-y-2.5'")))
(nav
:class (<>
"fixed flex flex-col items-center justify-center "
"z-10 top-0 right-0 w-full h-full gap-16 bg-gray-200")
:class (clsx "fixed flex flex-col items-center justify-center"
"z-10 top-0 right-0 w-full h-full gap-16 bg-gray-200")
:x-show "open"
:x-transition.opacity t
:|x-transition:enter.duration.300ms| t

View file

@ -33,9 +33,8 @@
(~metadata :metadata (context :metadata))
(~scripts))
(body
:hx-ext (<>
"head-support, response-targets, "
(and (not (dev-mode-p)) "preload"))
:hx-ext (clsx "head-support, response-targets,"
(and (not (dev-mode-p)) "preload"))
:hx-boost "true" :hx-swap "transition:true"
:hx-target-404 "body" :hx-target-5* "body"
(~layout result)))))))))