Skip to content

Commit 451318f

Browse files
authored
Merge pull request #40 from ArielMAJ/fix/adjust-css-to-consider-dynamic-view
Fix/adjust css to consider dynamic view
2 parents 8698bea + 1c29838 commit 451318f

File tree

7 files changed

+21
-21
lines changed

7 files changed

+21
-21
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "finances-manager",
3-
"version": "0.7.1",
3+
"version": "0.7.2",
44
"scripts": {
55
"ng": "ng",
6-
"start": "ng serve",
6+
"start": "ng serve --host 0.0.0.0",
77
"start:prod": "ng serve --configuration production",
88
"build": "ng build",
99
"watch": "ng build --watch --configuration development",

src/app/components/financial-transaction/financial-transaction.component.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.modal-container {
22
overflow-y: scroll;
3-
max-height: 90vh;
3+
max-height: 90dvh;
44
}
55

66
.modal-container::-webkit-scrollbar {
@@ -30,7 +30,7 @@
3030
.modal-body {
3131
display: flex;
3232
flex-wrap: wrap;
33-
gap: 24px;
33+
gap: 8px;
3434
}
3535

3636
.modal-form {
@@ -57,7 +57,7 @@
5757
.button-group {
5858
display: flex;
5959
justify-content: space-between;
60-
gap: 16px;
60+
gap: 8px;
6161
}
6262

6363
.button-group button {
@@ -70,7 +70,7 @@ button {
7070

7171
@media (max-width: 768px) {
7272
.modal-card {
73-
gap: 16px;
73+
gap: 0px;
7474
padding: 16px;
7575
}
7676

src/app/pages/dashboard/dashboard.component.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
}
66

77
.outer {
8-
padding-bottom: 5vw;
9-
width: 100vw;
8+
padding-bottom: 5dvw;
9+
width: 100dvw;
1010
}
1111

1212
h1 {
@@ -83,7 +83,7 @@ mat-card,
8383

8484
.transaction-cell {
8585
text-align: right;
86-
padding-right: 4vw;
86+
padding-right: 4dvw;
8787
max-width: 80px;
8888
text-wrap: nowrap;
8989
}
@@ -110,7 +110,7 @@ th,
110110

111111
.description-cell {
112112
width: auto;
113-
max-width: 40vw;
113+
max-width: 40dvw;
114114
overflow-wrap: break-word;
115115
}
116116

@@ -152,14 +152,14 @@ th,
152152
}
153153

154154
.description-cell {
155-
max-width: 26vw;
155+
max-width: 26dvw;
156156
}
157157
}
158158

159159
@media (max-width: 432px) {
160160
mat-card,
161161
table {
162-
width: 90vw;
162+
width: 90dvw;
163163
margin: auto;
164164
padding: 0;
165165
}
@@ -171,6 +171,6 @@ th,
171171
}
172172

173173
.description-cell {
174-
max-width: 23vw;
174+
max-width: 23dvw;
175175
}
176176
}

src/app/pages/login/login.component.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
font-family: "Roboto", sans-serif;
33
background-color: #f4f6f8;
44
display: flex;
5-
min-height: 98vh;
5+
min-height: 98dvh;
66
padding: 1vh 0;
77
}
88

@@ -111,7 +111,7 @@ mat-icon {
111111

112112
@media (max-width: 480px) {
113113
.login-content {
114-
max-width: 83vw;
114+
max-width: 83dvw;
115115
padding: 15px;
116116
}
117117

src/app/pages/register/register.component.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
.outer {
22
font-family: Arial, sans-serif;
33
display: flex;
4-
min-height: 100vh;
4+
min-height: 100dvh;
55
background: linear-gradient(135deg, #cc092f 10%, #fdfdfd 60%);
66
}
77

88
.container {
99
width: 800px;
10-
max-width: 98vw;
10+
max-width: 98dvw;
1111
padding: 20px;
1212
box-sizing: border-box;
1313
margin: auto;

src/app/pages/settings/settings.component.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
font-family: Arial, sans-serif;
33
display: flex;
44
flex-direction: column;
5-
min-height: 100vh;
5+
min-height: 100dvh;
66
background: #cc092f;
77
}
88

99
.container {
1010
width: 800px;
11-
max-width: 98vw;
11+
max-width: 98dvw;
1212
padding: 20px;
1313
box-sizing: border-box;
1414
margin: auto;

0 commit comments

Comments
 (0)