Skip to content

Commit

Permalink
Smaller padding on mobile #10780
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerKiKi committed Oct 11, 2024
1 parent 952da64 commit df598f6
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
7 changes: 7 additions & 0 deletions client/app/home/home.component.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use '@ecodev/natural-layout' as nat;

#searchByCode {
border-radius: 5px;
background: rgba(0, 0, 0, 0.05);
Expand All @@ -20,4 +22,9 @@ mat-toolbar {
.admin-avatar {
text-decoration: none;
}

@include nat.media(null, sm) {
padding-right: 4px;
padding-left: 4px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</natural-sidenav>

<natural-sidenav-content>
<div class="nat-vertical nat-padding nat-gap-30 body">
<div class="nat-vertical nat-gap-30 body">
<div class="nat-vertical nat-gap-30 nat-sm-gap-0 nat-sm-horizontal">
<div class="nat-sm-expand nat-horizontal nat-wrap nat-gap-10 nat-left nat-top">
<div class="nat-horizontal nat-gap-10">
Expand Down
7 changes: 7 additions & 0 deletions client/app/profile/components/profile/profile.component.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use '@ecodev/natural-layout' as nat;

:host {
display: flex;
flex: 1;
Expand All @@ -11,6 +13,11 @@
.body {
box-sizing: border-box;
margin: 0 auto;

padding: 6px;
width: 100%;
max-width: 1300px;
@include nat.media(sm) {
padding: 30px;
}
}
5 changes: 5 additions & 0 deletions client/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ select:-webkit-autofill {

app-admin router-outlet + * {
padding: 20px 20px 100px 20px;

@include nat.media(null, sm) {
padding-right: 6px;
padding-left: 6px;
}
}

.detail-speed-dial {
Expand Down

0 comments on commit df598f6

Please sign in to comment.