Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix(web): adapt react-hot-toast to dark mode (#6377)

tandyleo1106ff88e36a22f
diff --git a/web/src/main.tsx b/web/src/main.tsx
index 0b6fc3428..244e38e72 100644
--- a/web/src/main.tsx
+++ b/web/src/main.tsx
@@ -69,7 +69,15 @@ function Main() {
<ViewProvider>
<AppInitializer>
<RouterProvider router={router} />
- <Toaster position="top-right" />
+ <Toaster
+ position="top-right"
+ toastOptions={{
+ style: {
+ background: "var(--popover)",
+ color: "var(--popover-foreground)",
+ },
+ }}
+ />
</AppInitializer>
</ViewProvider>
</TooltipProvider>