Skip to content

Commit ef59657

Browse files
committed
Improve layout on large screens
1 parent 2658622 commit ef59657

File tree

6 files changed

+33
-24
lines changed

6 files changed

+33
-24
lines changed

web/src/components/FAQ/FAQ.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
.faq-container {
2-
width: 100%;
3-
height: 100%;
42
padding: 0 1rem;
53
position: relative;
64
}
@@ -25,6 +23,13 @@
2523
right: 0;
2624
}
2725

26+
@media screen and (max-width: 2000px) {
27+
.faq-container {
28+
width: 100%;
29+
height: 100%;
30+
}
31+
}
32+
2833
@media screen and (max-width: 1000px) {
2934
.faq-container h1 {
3035
text-align: center;

web/src/components/HostNavigation/HostNavigation.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
flex-wrap: nowrap;
77
margin-top: 1rem;
88
margin-bottom: 1rem;
9+
max-width: 100vw;
910
}
1011

1112
.host-navigation-select {

web/src/components/HostPrices/HostPrices.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
margin-top: 2rem;
77
margin-left: 1rem;
88
position: relative;
9+
max-width: 33vw;
910
}
1011

1112
.host-prices-title {
@@ -44,9 +45,16 @@
4445
content: '\025bc';
4546
}
4647

48+
@media screen and (max-width: 1980px) {
49+
.host-prices-container {
50+
max-width: 50vw;
51+
}
52+
}
53+
4754
@media screen and (max-width: 1000px) {
4855
.host-prices-container {
4956
margin-top: 1rem;
5057
margin-left: 0;
58+
max-width: 100vw;
5159
}
5260
}

web/src/components/Hosts/Hosts.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
flex-direction: row;
2828
margin-top: 0.5rem;
2929
padding: 1rem 0;
30+
justify-content: center;
3031
}
3132

3233
.hosts-not-found {
@@ -51,6 +52,12 @@
5152
height: 6vw;
5253
}
5354

55+
@media screen and (max-width: 2000px) {
56+
.hosts-row {
57+
justify-content: initial;
58+
}
59+
}
60+
5461
@media screen and (max-width: 1000px) {
5562
.hosts-container {
5663
width: 100%;

web/src/components/HostsTable/HostsTable.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
.hosts-table-container {
22
max-width: 100%;
33
overflow: auto;
4+
display: flex;
5+
flex-direction: row;
6+
justify-content: center;
47
}
58

69
.hosts-table-container table {
@@ -84,3 +87,9 @@
8487
.hosts-table-dark .hosts-table-link {
8588
color: var(--textDark);
8689
}
90+
91+
@media screen and (max-width: 2000px) {
92+
.hosts-table-container {
93+
display: initial;
94+
}
95+
}

web/src/index.css

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
}
1616

1717
html {
18-
font-size: 32px;
18+
font-size: 16px;
1919
}
2020

2121
body {
@@ -39,24 +39,3 @@ code {
3939
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
4040
monospace;
4141
}
42-
43-
@media screen and (max-width: 3440px) {
44-
45-
html {
46-
font-size: 28px;
47-
}
48-
}
49-
50-
@media screen and (max-width: 2560px) {
51-
52-
html {
53-
font-size: 20px;
54-
}
55-
}
56-
57-
@media screen and (max-width: 1920px) {
58-
59-
html {
60-
font-size: 16px;
61-
}
62-
}

0 commit comments

Comments
 (0)