A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
web: fix themes selection not showing themes
Abdullah Attad1c724563f3f
diff --git a/apps/web/src/dialogs/settings/components/themes-selector.tsx b/apps/web/src/dialogs/settings/components/themes-selector.tsxindex 19b525a17..0b9c4cf6e 100644--- a/apps/web/src/dialogs/settings/components/themes-selector.tsx+++ b/apps/web/src/dialogs/settings/components/themes-selector.tsx@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.*/import { httpBatchLink } from "@trpc/client";import { QueryClient, QueryClientProvider } from "@tanstack/react-query";-import { useCallback, useRef, useState } from "react";+import { useCallback, useState } from "react";import { Box, Button, Flex, Input, Text } from "@theme-ui/components";import { CheckCircleOutline, Loading } from "../../../components/icons";import {@@ -74,7 +74,6 @@ function ThemesList() {);const [isApplying, setIsApplying] = useState(false);- const parentScrollRef = useRef<HTMLElement>();const setCurrentTheme = useThemeStore((store) => store.setTheme);const user = useUserStore((store) => store.user);const darkTheme = useThemeStore((store) => store.darkTheme);@@ -198,11 +197,6 @@ function ThemesList() {</Flex><Box- ref={(ref) => {- if (ref && ref instanceof HTMLElement)- parentScrollRef.current =- (ref.closest(".ms-container") as HTMLElement) || undefined;- }}sx={{".virtuoso-grid-list": {display: "grid",@@ -216,7 +210,9 @@ function ThemesList() {<Loader title={"Loading themes..."} />) : (<VirtuosoGrid- customScrollParent={parentScrollRef.current || undefined}+ customScrollParent={+ document.getElementById("settings-scrollbar") || undefined+ }data={[{...darkTheme,