fix(settings): fixed small issues with mobile

feat/draggable-server-list
trashtemp 2022-01-20 11:03:47 +01:00
parent 4ea97e0209
commit 13f119942c
No known key found for this signature in database
GPG Key ID: D1F0DB65081B0FC6
5 changed files with 28 additions and 11 deletions

2
external/lang vendored

@ -1 +1 @@
Subproject commit 3839ed8df3caf75ff5e26f7227c0d0ac65b7ab3b Subproject commit d6c59b4665ec9fd0b47797b3bf82e458bc65ff51

View File

@ -158,10 +158,10 @@
@media (pointer: coarse) { @media (pointer: coarse) {
.item { .item {
height: 40px; height: 50px;
&.compact { &.compact {
height: var(--bottom-navigation-height); height: 50px;
> div { > div {
gap: 20px; gap: 20px;

View File

@ -111,7 +111,7 @@ export default function App() {
leftPanel={ leftPanel={
inSpecial inSpecial
? undefined ? undefined
: { width: 288, component: <LeftSidebar /> } : { width: 290, component: <LeftSidebar /> }
} }
rightPanel={ rightPanel={
!inSpecial && inChannel !inSpecial && inChannel

View File

@ -94,6 +94,10 @@
background-clip: content-box; background-clip: content-box;
border-top: 80px solid transparent; border-top: 80px solid transparent;
} }
.container {
max-width: 300px;
}
} }
.settings { .settings {
@ -124,18 +128,13 @@
.container { .container {
min-width: 218px; min-width: 218px;
padding: 80px 8px; padding: 80px 8px;
display: flex; display: flex;
gap: 2px; gap: 2px;
flex-direction: column; flex-direction: column;
} }
@media only screen and (min-width: 800px) {
.container {
max-width: 300px;
}
}
.divider { .divider {
height: 30px; height: 30px;
} }

View File

@ -53,9 +53,10 @@ export default defineConfig({
name: "Revolt", name: "Revolt",
short_name: "Revolt", short_name: "Revolt",
description: "User-first, privacy-focused chat platform.", description: "User-first, privacy-focused chat platform.",
categories: ["messaging"], categories: ["communication", "chat", "messaging"],
start_url: "/", start_url: "/",
orientation: "portrait", orientation: "portrait",
/*display_override: ["window-controls-overlay"],*/
display: "standalone", display: "standalone",
background_color: "#101823", background_color: "#101823",
theme_color: "#101823", theme_color: "#101823",
@ -83,6 +84,23 @@ export default defineConfig({
purpose: "maskable", purpose: "maskable",
}, },
], ],
//TODO: add shortcuts relating to your last opened direct messages
/*shortcuts: [
{
"name": "Open Play Later",
"short_name": "Play Later",
"description": "View the list of podcasts you saved for later",
"url": "/play-later?utm_source=homescreen",
"icons": [{ "src": "/icons/play-later.png", "sizes": "192x192" }]
},
{
"name": "View Subscriptions",
"short_name": "Subscriptions",
"description": "View the list of podcasts you listen to",
"url": "/subscriptions?utm_source=homescreen",
"icons": [{ "src": "/icons/subscriptions.png", "sizes": "192x192" }]
}
]*/
}, },
}), }),
replace({ replace({