Skip to content

Commit

Permalink
fix document title
Browse files Browse the repository at this point in the history
  • Loading branch information
sprocketc committed Mar 2, 2024
1 parent ea8e7bf commit 41e61b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/renderer/window/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@

(defn app-header
[]
(let [fullscreen? @(rf/subscribe [:window/fullscreen?])]
(let [fullscreen? @(rf/subscribe [:window/fullscreen?])
title (or @(rf/subscribe [:document/path])
@(rf/subscribe [:document/title]))]
[:div.flex.items-center.relative
(when-not fullscreen?
[:div.drag
Expand All @@ -36,9 +38,7 @@
:height "14px"}}]])
[:div.flex.relative.bg-secondary
[menubar/root]]
[:div.title-bar (str (or @(rf/subscribe [:document/path])
@(rf/subscribe [:document/title]))
" - Repath Studio")]
[:div.title-bar (when title (str title " - ")) "Repath Studio"]
[:div.flex.h-full.flex-1.drag]
[:div.bg-primary
{:class (when-not (or platform/electron? fullscreen?) "mr-1.5")}
Expand Down

0 comments on commit 41e61b4

Please sign in to comment.