Improve page title layout with long titles
All checks were successful
/ build (push) Successful in 26s

This commit is contained in:
Simon Bruder 2024-07-24 11:53:05 +02:00
parent 1f852ef219
commit c2626cc138
Signed by: simon
GPG key ID: 347FF8699CDA0776

View file

@ -117,21 +117,23 @@ pub fn base(config: TemplateConfig, content: Markup) -> Markup {
(navbar(&config))
main .container.my-4 {
div .d-flex.justify-content-between.mb-3 {
div .d-flex.align-items-center.gap-1 {
div {
div .float-end.d-flex.align-items-start.h-100.gap-1 {
@for page_action in config.page_actions {
(page_action)
}
}
div {
@if let Some(ref page_title) = config.page_title {
h2 {
(page_title)
@if let Some(ref page_title_extra) = config.page_title_extra {
" "
(page_title_extra)
}
}
}
@if let Some(ref page_title_extra) = config.page_title_extra {
(page_title_extra)
}
}
div .d-flex.h-100.gap-1 {
@for page_action in config.page_actions {
(page_action)
}
}
}