Skip to content

Commit

Permalink
fix(ui): use 100% for heights
Browse files Browse the repository at this point in the history
This refrains elements to overflow when a parent container has set padding
  • Loading branch information
lemredd committed Jan 21, 2023
1 parent 9c329b0 commit 0a1f40e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/components/CalculatorContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,10 @@ function revertToChosenHistory(historyItem: HistoryItem) {
.calculator-container {
@apply p-1;
@apply flex flex-col justify-between;
min-height: 100vh;
height: 100%;
}
.screens {
position: relative;
.evaluation-screen-container {
@apply flex justify-end;
}
Expand Down
4 changes: 1 addition & 3 deletions src/components/CalculatorContainer/HistoryContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,8 @@ function revertToChosenHistory(historyItem: HistoryItem) {
}
&.shown-by-default {
@apply p-2;
min-height: 100vh;
height: 100%;
max-height: 100vh;
overflow-y: scroll;
.header-text {
@apply block mb-2;
Expand Down

0 comments on commit 0a1f40e

Please sign in to comment.