anix: show discovery button by default

This commit is contained in:
Kentai Radiquum 2025-08-27 19:35:26 +05:00
parent a615af836b
commit 28b7ea2d6c
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
4 changed files with 30 additions and 22 deletions

View file

@ -54,7 +54,7 @@ const FifthButton = {
title: "Обзор",
icon: "mdi--compass",
href: "/discovery",
auth: true,
auth: false,
},
};
@ -81,19 +81,27 @@ export const NavBarMobile = (props: { setIsSettingModalOpen: any }) => {
</Link>
);
})}
{userStore.isAuth && preferenceStore.flags.showFifthButton ?
<Link
href={FifthButton[preferenceStore.flags.showFifthButton].href}
key={`navbar-mobile-${FifthButton[preferenceStore.flags.showFifthButton].title}`}
className="flex flex-col items-center justify-center gap-1"
>
<span
className={`iconify ${FifthButton[preferenceStore.flags.showFifthButton].icon} w-6 h-6`}
></span>
<span className="text-sm">
{FifthButton[preferenceStore.flags.showFifthButton].title}
</span>
</Link>
{preferenceStore.flags.showFifthButton ?
<>
{(
!userStore.isAuth &&
FifthButton[preferenceStore.flags.showFifthButton].auth
) ?
<></>
: <Link
href={FifthButton[preferenceStore.flags.showFifthButton].href}
key={`navbar-mobile-${FifthButton[preferenceStore.flags.showFifthButton].title}`}
className="flex flex-col items-center justify-center gap-1"
>
<span
className={`iconify ${FifthButton[preferenceStore.flags.showFifthButton].icon} w-6 h-6`}
></span>
<span className="text-sm">
{FifthButton[preferenceStore.flags.showFifthButton].title}
</span>
</Link>
}
</>
: ""}
<Dropdown
arrowIcon={false}

View file

@ -16,6 +16,12 @@ const NavbarItems = [
href: "/",
auth: false,
},
{
title: "Обзор",
icon: "mdi--compass",
href: "/discovery",
auth: false,
},
{
title: "Поиск",
icon: "mdi--search",
@ -46,12 +52,6 @@ const NavbarItems = [
href: "/history",
auth: true,
},
{
title: "Обзор",
icon: "mdi--compass",
href: "/discovery",
auth: true,
},
];
export const NavBarPc = (props: { setIsSettingModalOpen: any }) => {

View file

@ -96,7 +96,7 @@ export const PosterWithStuff = (props: {
</p>
)}
{props.title_original && (
<p className="hidden mt-2 text-sm leading-none text-gray-300 sm:block md:text-base line-clamp-2">
<p className="hidden mt-2 text-sm leading-none text-gray-300 sm:[display:-webkit-box] md:text-base line-clamp-2">
{props.title_original}
</p>
)}

View file

@ -40,7 +40,7 @@ export const usePreferencesStore = create<preferencesState>()(
flags: {
saveWatchHistory: true,
showChangelog: true,
showFifthButton: null,
showFifthButton: "discovery",
},
params: {
isFirstLaunch: true,