Archived
Own bar above the new brother_ql_web label designer, which has no Bootstrap
deploy / deploy (push) Successful in 5s
deploy / deploy (push) Successful in 5s
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.
This commit is contained in:
1 parent
a76c35304c
commit
d5db7ded9e
3 files changed
+21
-2
No files matched your search
@@ -265,7 +265,7 @@ helpers do
|
||||
|
||||
body = res.body || ''
|
||||
if res['Content-Type']&.include?('text/html')
|
||||
body = body.sub(/(<body[^>]*>)/i) { "#{Regexp.last_match(1)}\n#{erb(:_navbar, layout: false)}" }
|
||||
body = body.sub(/(<body[^>]*>)/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{</head>}i) { %(<link href="/vendor/mdi-7.4.47/css/materialdesignicons.min.css" rel="stylesheet">\n</head>) }
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user