Skip to content

Commit

Permalink
Improve layout of content header on mobile with long title
Browse files Browse the repository at this point in the history
  • Loading branch information
spohlenz committed Jul 22, 2024
1 parent 932152f commit d4aba38
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/assets/bundle/trestle/admin.css

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion frontend/css/layout/_content-header.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
.content-header {
display: grid;
grid-template-columns: max-content auto;
grid-template-columns: auto auto;
grid-template-areas: "title toolbars"
"breadcrumbs toolbars";
align-items: center;

background: $content-header-bg;
padding: 1rem 1.5rem;
Expand All @@ -19,6 +20,7 @@

.content-header-title {
grid-area: title;
align-self: start;
margin: 0.25rem 0;

@include media-breakpoint-down(md) {
Expand All @@ -34,6 +36,10 @@
@include media-breakpoint-down(md) {
font-size: 2.25rem;
}

@include media-breakpoint-down(md) {
font-size: 2rem;
}
}
}

Expand Down

0 comments on commit d4aba38

Please sign in to comment.