From ad9d8263ec4a6b3ba227963c3210605e3123373a Mon Sep 17 00:00:00 2001 From: Chili Palmer Date: Sun, 26 Apr 2026 10:02:27 +0200 Subject: [PATCH] feat: compact window on macos --- lib/bds/desktop/shell_live/index.html.heex | 144 +++++++++++++-------- priv/ui/app.css | 39 ++++++ test/bds/desktop/shell_live_test.exs | 15 ++- test/bds/desktop_test.exs | 7 +- test/bds/ui/shell_test.exs | 3 + 5 files changed, 153 insertions(+), 55 deletions(-) diff --git a/lib/bds/desktop/shell_live/index.html.heex b/lib/bds/desktop/shell_live/index.html.heex index fdaa9d8..c53cbd9 100644 --- a/lib/bds/desktop/shell_live/index.html.heex +++ b/lib/bds/desktop/shell_live/index.html.heex @@ -1,11 +1,15 @@
-
- <%= unless @is_mac_ui do %> + <%= if @is_mac_ui do %> + + <% end %> + + <%= unless @is_mac_ui do %> +
<%= for group <- @menu_groups do %> <% end %>
- <% end %> -
-
<%= @page_title %>
-
- - - -
- <%= if not @is_mac_ui do %> +
+
<%= @page_title %>
+
+ + + +
<%= if group = active_titlebar_menu_group(assigns) do %>
<% end %> - <% end %> -
+
+ <% end %>