Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

editor: fix theme related issues

Abdullah Atta7f3c74b55b49
diff --git a/packages/editor/src/components/responsive/index.tsx b/packages/editor/src/components/responsive/index.tsx
index c615f7000..79b749e74 100644
--- a/packages/editor/src/components/responsive/index.tsx
+++ b/packages/editor/src/components/responsive/index.tsx
@@ -26,7 +26,8 @@ import {
import {
MenuPresenter,
MenuPresenterProps,
- PopupPresenter
+ PopupPresenter,
+ PopupPresenterProps
} from "@notesnook/ui";
import { getPopupContainer } from "../../toolbar/utils/dom.js";
@@ -51,7 +52,8 @@ export function MobileOnly(props: PropsWithChildren<unknown>) {
export type PopupType = "sheet" | "menu" | "none" | "popup";
export type ResponsivePresenterProps = MenuPresenterProps &
- ActionSheetPresenterProps & {
+ ActionSheetPresenterProps &
+ PopupPresenterProps & {
mobile?: PopupType;
desktop?: PopupType;
};
diff --git a/packages/editor/src/toolbar/floating-menus/search-replace.tsx b/packages/editor/src/toolbar/floating-menus/search-replace.tsx
index 493ecd4c9..94d2641e3 100644
--- a/packages/editor/src/toolbar/floating-menus/search-replace.tsx
+++ b/packages/editor/src/toolbar/floating-menus/search-replace.tsx
@@ -38,6 +38,7 @@ export function SearchReplaceFloatingMenu(props: FloatingMenuProps) {
<ResponsivePresenter
mobile="sheet"
desktop="popup"
+ scope="dialog"
isOpen={isSearching}
onClose={() => editor.commands.endSearch()}
position={{
diff --git a/packages/editor/src/toolbar/popups/table-popup.tsx b/packages/editor/src/toolbar/popups/table-popup.tsx
index cdd4c16cf..3ca34c2c3 100644
--- a/packages/editor/src/toolbar/popups/table-popup.tsx
+++ b/packages/editor/src/toolbar/popups/table-popup.tsx
@@ -125,7 +125,7 @@ export function TablePopup(props: TablePopupProps) {
bg: "background-selected",
borderColor: "transparent"
}
- : { bg: "transparent", borderColor: "border" })
+ : { bg: "background-secondary", borderColor: "border" })
}}
onTouchStart={() => {
setCellLocation(getCellLocation(index, tableSize));
diff --git a/packages/editor/styles/styles.css b/packages/editor/styles/styles.css
index 962e11935..800645d3a 100644
--- a/packages/editor/styles/styles.css
+++ b/packages/editor/styles/styles.css
@@ -42,7 +42,7 @@
margin-block: 0px;
cursor: pointer;
position: relative;
- background-color: var(--border);
+ background-color: var(--separator);
width: 100%;
height: 5px;
margin-top: 4px;