Skip to content

Commit

Permalink
fix: button size on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Lovepreet Singh Jassal committed Jun 25, 2024
1 parent ff0be18 commit eabbb40
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
10 changes: 8 additions & 2 deletions src/app/components/main/main.component.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#tools{
height: 100vh;
width: 100%;
width: 30%;
display: flex;
justify-content: center;
align-items: center;
Expand All @@ -9,9 +9,15 @@

.tools{
margin:1em;
width: 100%;
}
@media only screen and (max-width: 600px) {
#tools{
width: 40%;
width: 100%;
}

.tools{
margin:1em;
width: 90%;
}
}
8 changes: 5 additions & 3 deletions src/app/components/main/main.component.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<div id="tools">
<button class="tools" id="trim" mat-raised-button routerLink="trim">Trim</button>
<button class="tools" id="unixtime" mat-raised-button routerLink="unixtime">Unix timestamp converter</button>
<div class="center">
<div id="tools">
<button class="tools" id="trim" mat-raised-button routerLink="trim">Trim</button>
<button class="tools" id="unixtime" mat-raised-button routerLink="unixtime">Unix timestamp converter</button>
</div>
</div>
5 changes: 5 additions & 0 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@

html, body { height: 100%; }
body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; }

.center{
display: flex;
justify-content: center;
}

0 comments on commit eabbb40

Please sign in to comment.