diff options
author | Miguel Ángel Moreno <mail@migalmoreno.com> | 2024-12-19 22:23:17 +0100 |
---|---|---|
committer | Miguel Ángel Moreno <mail@migalmoreno.com> | 2024-12-19 22:23:17 +0100 |
commit | 1b3f353ede24ec6544df63b9298e4157942e1eed (patch) | |
tree | a1309c0cd5441a1258cba8c6aa78645a91e79be6 /src/frontend | |
parent | 46978228ea16853d8a50b9048ebe4048bad6c681 (diff) |
fix: fix tab label to be hidden only when no icons are provided
Diffstat (limited to 'src/frontend')
-rw-r--r-- | src/frontend/tubo/layout/views.cljs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/frontend/tubo/layout/views.cljs b/src/frontend/tubo/layout/views.cljs index c19b4fd..f6b4256 100644 --- a/src/frontend/tubo/layout/views.cljs +++ b/src/frontend/tubo/layout/views.cljs @@ -295,7 +295,9 @@ (reset! !current tab) (on-change (:id @!current))))} (:left-icon tab) - [:span.hidden.xs:block + [:span + {:class (when (or (:left-icon tab) (:right-icon tab)) + ["hidden" "xs:block"])} (if (:label-fn tab) ((:label-fn tab) (:label tab)) (:label tab))] |