Skip to content

Commit

Permalink
Merge pull request #164 from Chris3444/master
Browse files Browse the repository at this point in the history
css fix small screens
  • Loading branch information
Chris3444 authored May 19, 2023
2 parents 3c0135c + ded1418 commit e456582
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/navigation/navigation.component.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

<mat-toolbar color="primary" [class.flex-start]="menuPoints.length < 1">
<button *ngIf="back" [routerLink]="back" mat-icon-button class="icon" aria-label="back">
<button *ngIf="back" [routerLink]="back" mat-icon-button class="icon" aria-label="back" class = "back">
<mat-icon>keyboard_backspace</mat-icon>
</button>
<button mat-icon-button [routerLink]="['/emission']" class="logo">
Expand All @@ -10,7 +10,7 @@

<span *ngIf="menuPoints.length>1; else settings">
<button [matMenuTriggerFor]="menu" aria-label="menu" style="display: flex;" class="menu">
<span style="margin-right: 5px; margin-top: 5%; font-size: medium;">Menu</span>
<span style="margin-right: 5px; margin-top: 5%;" class="menuname">Menu</span>
<mat-icon>more_vert</mat-icon>
</button>

Expand Down
25 changes: 25 additions & 0 deletions src/app/navigation/navigation.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,31 @@ img {
img{
height: 50%;
}
.menuname{
font-size: small;
}
}
@media screen and (max-width: 400px) {
.mat-toolbar {
font-size: smaller;
}
.menuname{
font-size: smaller;
margin-right: 1px;
}
.menu{
margin-right: 2px;
margin-left: 2px;
}
.back{
height: 50%;
}

}
@media screen and (max-width: 350px) {
.menuname{
display: none;
}
}
.mat-toolbar-row, .mat-toolbar-single-row {
white-space: wrap;
Expand Down
1 change: 1 addition & 0 deletions src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ html, body {
// min-width: 100vh !important;
width:100%;
height:100%;
min-width: 280px;
}
// // Foreground Elements

Expand Down

0 comments on commit e456582

Please sign in to comment.