aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/tubo/views.cljs
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/tubo/views.cljs')
-rw-r--r--src/frontend/tubo/views.cljs10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/frontend/tubo/views.cljs b/src/frontend/tubo/views.cljs
index 188c90b..074596e 100644
--- a/src/frontend/tubo/views.cljs
+++ b/src/frontend/tubo/views.cljs
@@ -2,6 +2,7 @@
(:require
[re-frame.core :as rf]
[tubo.bg-player.views :as bg-player]
+ [tubo.layout.views :as layout]
[tubo.main-player.views :as main-player]
[tubo.modals.views :as modals]
[tubo.navigation.views :as navigation]
@@ -12,9 +13,14 @@
[]
(let [current-match @(rf/subscribe [:navigation/current-match])
dark-theme? @(rf/subscribe [:dark-theme])]
- [:div {:class (when dark-theme? :dark)}
- [:div.font-nunito-sans.min-h-screen.h-full.relative.flex.flex-col.dark:text-white.bg-neutral-100.dark:bg-neutral-900
[modals/modal]
+ [:div
+ {:class (when dark-theme? :dark)
+ :on-click #(rf/dispatch [:layout/destroy-tooltips-on-click-out
+ (.. % -target)])}
+ [:div.font-nunito-sans.min-h-screen.h-full.relative.flex.flex-col.dark:text-white.bg-neutral-100.dark:bg-neutral-900.z-10
+ [layout/background-overlay]
+ [layout/mobile-tooltip]
[navigation/navbar current-match]
[notifications/notifications-panel]
[:div.flex.flex-col.flex-auto.justify-between.relative