From d5db7ded9e75537152deb795649b383e6a8d23c5 Mon Sep 17 00:00:00 2001 From: Roman Priesol Date: Wed, 4 Nov 2026 12:32:37 +0100 Subject: [PATCH] Own bar above the new brother_ql_web label designer, which has no Bootstrap The Bootstrap navbar was injected without Bootstrap and took the first row of the designer's page grid, its top bar was stretched to the height of the page. --- app.rb | 2 +- views/_brother_bar.erb | 19 +++++++++++++++++++ views/_navbar.erb | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 views/_brother_bar.erb diff --git a/app.rb b/app.rb index b4c6118..c4c07b6 100644 --- a/app.rb +++ b/app.rb @@ -265,7 +265,7 @@ helpers do body = res.body || '' if res['Content-Type']&.include?('text/html') - body = body.sub(/(]*>)/i) { "#{Regexp.last_match(1)}\n#{erb(:_navbar, layout: false)}" } + body = body.sub(/(]*>)/i) { "#{Regexp.last_match(1)}\n#{erb(:_brother_bar, layout: false)}" } # The navbar's icons, brother_ql_web has no MDI font of its own body = body.sub(%r{}i) { %(\n) } end diff --git a/views/_brother_bar.erb b/views/_brother_bar.erb new file mode 100644 index 0000000..39c8f19 --- /dev/null +++ b/views/_brother_bar.erb @@ -0,0 +1,19 @@ +<%# Above brother_ql_web's label designer, which has no Bootstrap: styled here, + and a row of the designer's page grid (its top bar and view follow) %> + + diff --git a/views/_navbar.erb b/views/_navbar.erb index e3441d2..2a9743f 100644 --- a/views/_navbar.erb +++ b/views/_navbar.erb @@ -1,4 +1,4 @@ -