aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2024-12-19 22:23:17 +0100
committerMiguel Ángel Moreno <mail@migalmoreno.com>2024-12-19 22:23:17 +0100
commit1b3f353ede24ec6544df63b9298e4157942e1eed (patch)
treea1309c0cd5441a1258cba8c6aa78645a91e79be6 /src
parent46978228ea16853d8a50b9048ebe4048bad6c681 (diff)
fix: fix tab label to be hidden only when no icons are provided
Diffstat (limited to 'src')
-rw-r--r--src/frontend/tubo/layout/views.cljs4
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))]