feat: add mobile support

This commit is contained in:
Yidadaa
2023-03-15 01:44:42 +08:00
parent 76a6341c7b
commit 1fae774bb2
8 changed files with 144 additions and 39 deletions
+11
View File
@@ -46,6 +46,17 @@
--window-height: 90vh;
--sidebar-width: 300px;
--window-content-width: calc(var(--window-width) - var(--sidebar-width));
--message-max-width: 80%;
}
@media only screen and (max-width: 600px) {
:root {
--window-width: 100vw;
--window-height: 100vh;
--sidebar-width: 100vw;
--window-content-width: var(--window-width);
--message-max-width: 100%;
}
}
@media (prefers-color-scheme: dark) {