From 23052b9dbdace7aa2436b2cf19ef029c269280e2 Mon Sep 17 00:00:00 2001 From: Igor Fedoronchuk Date: Wed, 14 Oct 2026 23:07:55 +0200 Subject: [PATCH] fix: keep button_to action items on the title bar's row MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A button_to renders as a block-level
, which drops to its own line once consumers delete their old float workaround (the float itself collapsed the flex bar's height — the button hung below the bar). inline-block keeps the form in the row like its anchor siblings. --- app/assets/stylesheets/wigu/active_admin_theme.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/stylesheets/wigu/active_admin_theme.scss b/app/assets/stylesheets/wigu/active_admin_theme.scss index 4f4784e..071987f 100644 --- a/app/assets/stylesheets/wigu/active_admin_theme.scss +++ b/app/assets/stylesheets/wigu/active_admin_theme.scss @@ -745,6 +745,10 @@ body.active_admin { // `> a` and `> .dropdown_menu > a`: an action item may hold a dropdown, and // a descendant selector here paints its menu entries with the button fill // too — with !important, so the entry rules below cannot undo it. + // A button_to action item renders as a block ; inline-block + // keeps it on the bar's single row (consumers used to float it, which + // collapsed the flex bar's height instead). + .action_item > form { display: inline-block; } .action_item > a, .action_item > .dropdown_menu > a, .action_item > form > input[type="submit"],