Browse Source
weird 0 popping out when toggling chat. wasn't able to find which component is responsible. Used bare mininum scss. May refactor in the future.pull/2032/head
6 changed files with 66 additions and 18 deletions
@ -1,14 +1,33 @@ |
|||||||
.root { |
.root { |
||||||
display: grid; |
display: grid; |
||||||
grid-template-columns: 8fr 4fr; |
grid-template-columns: 1fr; |
||||||
|
} |
||||||
|
|
||||||
|
.mobileChat { |
||||||
|
display: block; |
||||||
|
position: absolute; |
||||||
|
background-color: white; |
||||||
|
top: 0px; |
||||||
|
width: 100%; |
||||||
|
height: calc(50vh - var(--header-h)); |
||||||
} |
} |
||||||
|
|
||||||
.leftCol { |
.leftCol { |
||||||
display: grid; |
display: grid; |
||||||
// -64px, which is the header |
// -64px, which is the header |
||||||
grid-template-rows: 50vh calc(50vh - 64px); |
grid-template-rows: 50vh calc(50vh - var(--header-h)); |
||||||
} |
} |
||||||
.lowerRow { |
.lowerRow { |
||||||
|
position: relative; |
||||||
display: grid; |
display: grid; |
||||||
grid-template-rows: 1fr 64px; |
grid-template-rows: 1fr var(--header-h); |
||||||
} |
} |
||||||
|
|
||||||
|
@media (min-width: 768px) { |
||||||
|
.mobileChat { |
||||||
|
display: none; |
||||||
|
} |
||||||
|
.root[data-columns='2'] { |
||||||
|
grid-template-columns: 1fr var(--chat-w); |
||||||
|
} |
||||||
|
} |
||||||
|
|||||||
@ -0,0 +1,12 @@ |
|||||||
|
.root { |
||||||
|
background-color: var(--gray-700); |
||||||
|
display: none; |
||||||
|
} |
||||||
|
|
||||||
|
@media (min-width: 768px) { |
||||||
|
.root { |
||||||
|
display: flex; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in new issue