Improve page title layout with long titles
All checks were successful
/ build (push) Successful in 26s
All checks were successful
/ build (push) Successful in 26s
This commit is contained in:
parent
1f852ef219
commit
c2626cc138
|
@ -117,21 +117,23 @@ pub fn base(config: TemplateConfig, content: Markup) -> Markup {
|
||||||
(navbar(&config))
|
(navbar(&config))
|
||||||
|
|
||||||
main .container.my-4 {
|
main .container.my-4 {
|
||||||
div .d-flex.justify-content-between.mb-3 {
|
div {
|
||||||
div .d-flex.align-items-center.gap-1 {
|
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 {
|
@if let Some(ref page_title) = config.page_title {
|
||||||
h2 {
|
h2 {
|
||||||
(page_title)
|
(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)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue