Skip to content

Commit d216552

Browse files
authored
build: a couple of minor improvements to the dev app (#21766)
Makes the following quality of life improvements to the dev app: * Removes the horizontal scrolling on smaller screens which is caused by all the buttons in the toolbar. * Removes some extra spacing at the top of the page on IE.
1 parent a177616 commit d216552

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/dev-app/dev-app/dev-app-layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
be one level above the density class in the DOM. At the same time, we want the density to apply
3030
to the toolbar while always keeping it in LTR at the same time.
3131
-->
32-
<main [attr.dir]="dir.value" [ngClass]="getDensityClass()">
32+
<main [attr.dir]="dir.value" [ngClass]="getDensityClass()" class="demo-main">
3333
<!-- The toolbar should always be in the LTR direction -->
3434
<mat-toolbar color="primary" dir="ltr">
3535
<button mat-icon-button (click)="start.open('mouse')">

src/dev-app/dev-app/dev-app-layout.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ body {
4141
justify-content: space-between;
4242
align-items: center;
4343
width: 100%;
44+
45+
// Avoids horizontal scrollbars on smaller screens.
46+
overflow: hidden;
4447
}
4548
}
4649

@@ -61,3 +64,8 @@ body {
6164
min-width: 100%;
6265
min-height: 100%;
6366
}
67+
68+
.demo-main {
69+
// Removes extra space on top of toolbar on IE.
70+
display: block;
71+
}

0 commit comments

Comments
 (0)