From 1b3f353ede24ec6544df63b9298e4157942e1eed Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Thu, 19 Dec 2024 22:23:17 +0100 Subject: fix: fix tab label to be hidden only when no icons are provided --- src/frontend/tubo/layout/views.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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))] -- cgit v1.2.3