Move bridge buttons controller to <body>

This commit is contained in:
Adrien Maston
2026-01-08 16:31:00 +01:00
parent 3a43941575
commit 45f24d959e
2 changed files with 9 additions and 11 deletions
+8 -10
View File
@@ -5,18 +5,16 @@
<%= turbo_stream_from @board %>
<% content_for :header do %>
<div data-controller="bridge--buttons">
<div class="header__actions header__actions--start">
<%= link_to_webhooks(@board) if Current.user.admin? %>
</div>
<div class="header__actions header__actions--start">
<%= link_to_webhooks(@board) if Current.user.admin? %>
</div>
<h1 class="header__title divider divider--fade full-width" data-bridge--page-target="header">
<span class="overflow-ellipsis"><%= @board.name %></span>
</h1>
<h1 class="header__title divider divider--fade full-width" data-bridge--page-target="header">
<span class="overflow-ellipsis"><%= @board.name %></span>
</h1>
<div class="header__actions header__actions--end">
<%= link_to_edit_board @board %>
</div>
<div class="header__actions header__actions--end">
<%= link_to_edit_board @board %>
</div>
<% end %>
+1 -1
View File
@@ -2,7 +2,7 @@
<html lang="en">
<%= render "layouts/shared/head" %>
<body class="<%= @body_class %>" data-controller="bridge--page bridge--insets local-time timezone-cookie turbo-navigation theme" data-action="turbo:morph@window->local-time#refreshAll turbo:before-visit@document->turbo-navigation#rememberLocation" data-platform="<%= platform.type %>" <%= "data-bridge--page-title-value=#{@page_title}" if @page_title %>>
<body class="<%= @body_class %>" data-controller="local-time timezone-cookie turbo-navigation theme bridge--page bridge--insets bridge--buttons" data-action="turbo:morph@window->local-time#refreshAll turbo:before-visit@document->turbo-navigation#rememberLocation" data-platform="<%= platform.type %>" <%= "data-bridge--page-title-value=#{@page_title}" if @page_title %>>
<div id="global-container">
<header class="header header--mobile-actions-stack <%= @header_class %>" id="header">
<a href="#main" class="header__skip-navigation btn" data-turbo="false">Skip to main content</a>