Skip to content

Commit

Permalink
Tweak mobile UI/UX
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoBernardino committed Jan 4, 2022
1 parent 31c2c9c commit 157f925
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
7 changes: 4 additions & 3 deletions components/Panels/AddExpense.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ const Container = styled.section`
flex: 1;
background-color: ${colors().background};
padding: 0 16px;
width: 90vw;
width: 86vw;
border-radius: 5px;
margin-top: -10px;
margin-right: -2px;
margin: 10px 0 30px;
@media only screen and (min-width: 800px) {
max-width: 280px;
margin-top: 5px;
margin-bottom: 10px;
}
`;

Expand Down
3 changes: 2 additions & 1 deletion components/Panels/Budgets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@ const Container = styled.section`
display: flex;
flex-direction: column;
flex: 1;
margin: 0 10px;
margin: 20px 10px;
max-height: 80vh;
overflow: auto;
${safariFix}
width: 90vw;
@media only screen and (min-width: 800px) {
width: auto;
margin: 0 10px;
}
`;

Expand Down
2 changes: 2 additions & 0 deletions components/Panels/Expenses.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ const Container = styled.section`
display: flex;
flex-direction: column;
flex: 1;
margin: 20px 10px;
max-height: 80vh;
overflow: auto;
${safariFix}
width: 90vw;
@media only screen and (min-width: 800px) {
width: auto;
margin: 0;
}
`;

Expand Down

0 comments on commit 157f925

Please sign in to comment.