Skip to content

build: a couple of minor improvements to the dev app #21766

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/dev-app/dev-app/dev-app-layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
be one level above the density class in the DOM. At the same time, we want the density to apply
to the toolbar while always keeping it in LTR at the same time.
-->
<main [attr.dir]="dir.value" [ngClass]="getDensityClass()">
<main [attr.dir]="dir.value" [ngClass]="getDensityClass()" class="demo-main">
<!-- The toolbar should always be in the LTR direction -->
<mat-toolbar color="primary" dir="ltr">
<button mat-icon-button (click)="start.open('mouse')">
Expand Down
8 changes: 8 additions & 0 deletions src/dev-app/dev-app/dev-app-layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ body {
justify-content: space-between;
align-items: center;
width: 100%;

// Avoids horizontal scrollbars on smaller screens.
overflow: hidden;
}
}

Expand All @@ -61,3 +64,8 @@ body {
min-width: 100%;
min-height: 100%;
}

.demo-main {
// Removes extra space on top of toolbar on IE.
display: block;
}