diff --git a/src/app.css b/src/app.css
index 90fa5777..541d8dd9 100644
--- a/src/app.css
+++ b/src/app.css
@@ -1,5 +1,7 @@
@import "tailwindcss";
+@custom-variant dark (&:where(.dark, .dark *));
+
@theme {
--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
diff --git a/src/components/ChaptersBar.vue b/src/components/ChaptersBar.vue
index e647886b..d1e4ba29 100644
--- a/src/components/ChaptersBar.vue
+++ b/src/components/ChaptersBar.vue
@@ -38,7 +38,7 @@
@click="$emit('seek', chapter.start)"
>
-
+
@@ -53,13 +53,13 @@
-
![]()
+
-
+
diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue
index 818f3fb5..7cd6b305 100644
--- a/src/components/NavBar.vue
+++ b/src/components/NavBar.vue
@@ -147,7 +147,6 @@ import ClearButton from "./ui/ClearButton.vue";
import hotkeys from "hotkeys-js";
import { fetchJson, authApiUrl, getAuthToken } from "@/composables/useApi.js";
import { getPreferenceBoolean, getPreferenceString } from "@/composables/usePreferences.js";
-import { getHomePage } from "@/composables/useMisc.js";
const router = useRouter();
const route = useRoute();
@@ -158,9 +157,10 @@ const searchSuggestions = ref(null);
const searchText = ref("");
const suggestionsVisible = ref(false);
const showTopNav = ref(false);
-const homePagePath = ref(import.meta.env.BASE_URL);
const registrationDisabled = ref(false);
+const homePagePath = import.meta.env.BASE_URL;
+
const shouldShowLogin = computed(() => {
return getAuthToken() == null;
});
@@ -253,7 +253,6 @@ onMounted(() => {
fetchAuthConfig();
updateSearchTextFromURLSearchParams();
focusOnSearchBar();
- homePagePath.value = getHomePage();
});
diff --git a/src/router/router.js b/src/router/router.js
index 4002e03e..de268447 100644
--- a/src/router/router.js
+++ b/src/router/router.js
@@ -1,10 +1,11 @@
import { createRouter, createWebHistory } from "vue-router";
+import { getHomePage } from "@/composables/useMisc.js";
const routes = [
{
path: "/",
name: "Home",
- component: () => import("../components/TrendingPage.vue"),
+ redirect: () => getHomePage() ?? "/trending",
},
{
path: "/trending",