Skip to content
This repository was archived by the owner on Oct 30, 2025. It is now read-only.

Commit 4334e15

Browse files
authored
Merge pull request #97 from RonLek/fix-cross-browser-widths
[FIX] Makes heights and widths cross browser compatible
2 parents 7e21d24 + 2e2fb64 commit 4334e15

6 files changed

Lines changed: 34 additions & 0 deletions

File tree

client/src/components/ActivityPane/index.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
.activity-pane-wrapper {
2+
height: 100%;
23
height: -webkit-fill-available;
4+
height: -moz-available;
5+
height: fill-available;
36
}
47

58
.activity-pane-header {

client/src/components/AnonymousModeLeftSidebar/index.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
.anonymous-left-sidebar-wrapper {
22
width: 20%;
33
background-color: #2f343d;
4+
min-height: 100%;
45
min-height: -webkit-fill-available;
6+
min-height: -moz-available;
7+
min-height: fill-available;
58
display: flex;
69
flex-direction: column;
710
flex-wrap: nowrap;
@@ -33,7 +36,10 @@
3336
background-color: rgb(255 255 255 / 10%);
3437
padding: 10px 20px;
3538
color: white;
39+
width: 100%;
3640
width: -webkit-fill-available;
41+
width: -moz-available;
42+
width: fill-available;
3743
}
3844

3945
.anonymous-left-sidebar-content p {

client/src/components/ChatWindow/index.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
.chatWindow-container {
2+
width: 100%;
23
width: -webkit-fill-available;
4+
width: -moz-available;
5+
width: fill-available;
36
display: flex;
47
position: relative;
58
}
@@ -20,6 +23,9 @@
2023
}
2124

2225
.chatWindow {
26+
width: 100%;
2327
width: -webkit-fill-available;
28+
width: -moz-available;
29+
width: fill-available;
2430
border: none;
2531
}

client/src/components/Login/index.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,14 @@
55
justify-content: flex-start;
66
flex-direction: column;
77
align-items: center;
8+
min-height: 100%;
89
min-height: -webkit-fill-available;
10+
min-height: -moz-available;
11+
min-height: fill-available;
12+
min-width: 100%;
913
min-width: -webkit-fill-available;
14+
min-width: -moz-available;
15+
min-width: fill-available;
1016
}
1117

1218
.login-header {
@@ -21,8 +27,11 @@
2127
}
2228

2329
.login-card {
30+
width: 100%;
2431
max-width: 450px;
2532
width: -webkit-fill-available;
33+
width: -moz-available;
34+
width: fill-available;
2635
background-color: white;
2736
padding: 20px;
2837
display:flex;
@@ -38,6 +47,10 @@
3847
display: flex;
3948
margin: 0px auto 10px;
4049
width: inherit;
50+
max-width: 84%;
51+
max-width: -webkit-fill-available;
52+
max-width: -moz-available;
53+
max-width: fill-available;
4154
padding: 0.8em 2.5em;
4255
color: white;
4356
text-decoration: none;

client/src/components/RoomInfo/index.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
.repo-info-wrapper {
2+
height: 100%;
23
height: -webkit-fill-available;
4+
height: -moz-available;
5+
height: fill-available;
36
}
47

58
.repo-info-header {

client/src/components/RoomItem/index.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
.room-wrapper{
22
display: flex;
3+
width: 100%;
34
width: -webkit-fill-available;
5+
width: -moz-available;
6+
width: fill-available;
47
padding: 6px 1rem;
58
flex-direction: row;
69
color: #9ea2a8;

0 commit comments

Comments
 (0)