Skip to content

Commit

Permalink
Hide window navbar title when title is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
tillvit committed Sep 20, 2024
1 parent c5e3cb6 commit f7d08db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/gui/window/Window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ export abstract class Window {
viewElement.style.width = options.width + "px"

navbarElement.classList.add("navbar")
navbarElement.appendChild(navbarTitleElement)
if (options.title !== "") {
navbarElement.appendChild(navbarTitleElement)
}
if (!options.disableClose) {
const minimizeElement = Icons.getIcon("MINIMIZE", 15)
const closeElement = Icons.getIcon("CLOSE_WINDOW", 15)
Expand Down

0 comments on commit f7d08db

Please sign in to comment.