Settings page: fix mobile nav, so users can like use it
This commit is contained in:
parent
d9d7e79f0e
commit
bd39e6fba7
6 changed files with 17 additions and 8 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
"version": "9.0.0",
|
"version": "9.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "concurrently \"astro dev\" \"tsx --watch server/server.ts\"",
|
"dev": "concurrently \"astro dev --host 0.0.0.0\" \"tsx --watch server/server.ts\"",
|
||||||
"start": "node server/server.js",
|
"start": "node server/server.js",
|
||||||
"build:server": "tsc -p server",
|
"build:server": "tsc -p server",
|
||||||
"build:client": "astro check && astro build",
|
"build:client": "astro check && astro build",
|
||||||
|
|
|
||||||
|
|
@ -4,13 +4,13 @@ const { title, route } = Astro.props;
|
||||||
|
|
||||||
<a
|
<a
|
||||||
href={route}
|
href={route}
|
||||||
class="group flex flex-col items-center p-3 bg-navbar-color w-full rounded-3xl md:flex-row md:bg-none md:rounded-none"
|
class="snap-center snap-always group flex flex-col items-center p-3 bg-navbar-color w-full rounded-3xl md:flex-row md:bg-none md:rounded-none"
|
||||||
>
|
>
|
||||||
<div class="p-2">
|
<div class="p-2">
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="font-roboto text-center font-bold text-text-color roboto transition duration-500 group-hover:text-text-hover-color md:text-xl md:pl-2 text-nowrap"
|
class="max-md:min-w-24 roboto text-center font-bold text-text-color roboto transition duration-500 group-hover:text-text-hover-color md:text-xl md:ml-2 text-nowrap"
|
||||||
>
|
>
|
||||||
{title}
|
{title}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ const { title, noHeader } = Astro.props;
|
||||||
transition:persist
|
transition:persist
|
||||||
/>
|
/>
|
||||||
<link
|
<link
|
||||||
rel="stylesheet"
|
rel="preload"
|
||||||
href="https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap"
|
href="https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap"
|
||||||
/>
|
/>
|
||||||
<meta name="generator" content={Astro.generator} />
|
<meta name="generator" content={Astro.generator} />
|
||||||
|
|
@ -118,6 +118,13 @@ const { title, noHeader } = Astro.props;
|
||||||
.roboto {
|
.roboto {
|
||||||
font-family: var(--font-family), Roboto;
|
font-family: var(--font-family), Roboto;
|
||||||
}
|
}
|
||||||
|
.hide-the-scrollbar::-webkit-scrollbar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.hide-the-scrollbar {
|
||||||
|
-ms-overflow-style: none;
|
||||||
|
scrollbar-width: none;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ import { Icon } from "astro-icon/components";
|
||||||
|
|
||||||
<div class="flex flex-row roboto">
|
<div class="flex flex-row roboto">
|
||||||
<div class="text-text-color mt-16 fixed inset-0 h-[calc(100%-4rem)] z-0 bg-primary flex-col flex md:flex-row">
|
<div class="text-text-color mt-16 fixed inset-0 h-[calc(100%-4rem)] z-0 bg-primary flex-col flex md:flex-row">
|
||||||
<div class="items-center p-3 flex flex-row border-border-color gap-5 border-r-2 md:w-2/12 md:flex-col md:bg-navbar-color md:gap-0 md:p-0">
|
<div class="items-center md:p-3 flex flex-row border-border-color gap-5 md:border-r-2 md:w-2/12 md:flex-col md:bg-navbar-color md:gap-0 md:p-0 overflow-x-auto md:overflow-x-hidden overflow-y-hidden max-md:ml-1 max-md:mr-1 max-md:max-h-24 max-md:min-h-24 max-md:justify-left max-md:scroll-ml-3 max-md:scroll-mr-3 max-md:snap-x max-md:snap-mandatory">
|
||||||
<SidebarButton title={t("settings.appearance")} route={`/${lang}/settings/appearance`}>
|
<SidebarButton title={t("settings.appearance")} route={`/${lang}/settings/appearance`}>
|
||||||
<Icon name="ph:palette" class="h-6 w-6 text-text-color transition duration-500 group-hover:text-text-hover-color md:h-6 md:w-6" />
|
<Icon name="ph:palette" class="h-6 w-6 text-text-color transition duration-500 group-hover:text-text-hover-color md:h-6 md:w-6" />
|
||||||
</SidebarButton>
|
</SidebarButton>
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ const assetsJson = await response.json();
|
||||||
---
|
---
|
||||||
|
|
||||||
<Layout title={`Package: ${packageName}`}>
|
<Layout title={`Package: ${packageName}`}>
|
||||||
<div class="flex flex-wrap mt-16 w-full fixed inset-0 h-full md:h-[calc(100%-4rem)] z-0 bg-primary flex-col items-center content-center justify-center md:pb-64 roboto max-md:p-4">
|
<div class="flex flex-wrap mt-16 w-full fixed inset-0 h-full md:h-[calc(100%-4rem)] z-0 bg-primary flex-col items-center content-center justify-center sm:pt-64 lg:pb-64 roboto max-md:p-4">
|
||||||
{assetsJson.error && <h1 class="text-text-color text-3xl font-bold"> Unexpected error. Is the name right? </h1>}
|
{assetsJson.error && <h1 class="text-text-color text-3xl font-bold"> Unexpected error. Is the name right? </h1>}
|
||||||
{!assetsJson.error &&
|
{!assetsJson.error &&
|
||||||
<div class="flex flex-col md:flex-row items-center text-text-color bg-navbar-color rounded-2xl">
|
<div class="flex flex-col md:flex-row items-center text-text-color bg-navbar-color rounded-2xl">
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,9 @@ const AppearanceSettings = {
|
||||||
themeName: "nebula||themeName",
|
themeName: "nebula||themeName",
|
||||||
stylePayload: "nebula||stylepayload",
|
stylePayload: "nebula||stylepayload",
|
||||||
video: "nebula||video",
|
video: "nebula||video",
|
||||||
image: "nebula||image"
|
image: "nebula||image",
|
||||||
|
proxy: "nebula||marketplaceProxy",
|
||||||
|
hostname: "nebula||marketplaceHostname"
|
||||||
};
|
};
|
||||||
|
|
||||||
const marketPlaceSettings = {
|
const marketPlaceSettings = {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue