Merge pull request #8388 from streetwriters/fix/theme-issues-2

This commit is contained in:
Abdullah Atta
2025-09-12 08:28:13 +05:00
4 changed files with 7 additions and 4 deletions

View File

@@ -26,7 +26,8 @@ import {
import { import {
MenuPresenter, MenuPresenter,
MenuPresenterProps, MenuPresenterProps,
PopupPresenter PopupPresenter,
PopupPresenterProps
} from "@notesnook/ui"; } from "@notesnook/ui";
import { getPopupContainer } from "../../toolbar/utils/dom.js"; 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 PopupType = "sheet" | "menu" | "none" | "popup";
export type ResponsivePresenterProps = MenuPresenterProps & export type ResponsivePresenterProps = MenuPresenterProps &
ActionSheetPresenterProps & { ActionSheetPresenterProps &
PopupPresenterProps & {
mobile?: PopupType; mobile?: PopupType;
desktop?: PopupType; desktop?: PopupType;
}; };

View File

@@ -38,6 +38,7 @@ export function SearchReplaceFloatingMenu(props: FloatingMenuProps) {
<ResponsivePresenter <ResponsivePresenter
mobile="sheet" mobile="sheet"
desktop="popup" desktop="popup"
scope="dialog"
isOpen={isSearching} isOpen={isSearching}
onClose={() => editor.commands.endSearch()} onClose={() => editor.commands.endSearch()}
position={{ position={{

View File

@@ -125,7 +125,7 @@ export function TablePopup(props: TablePopupProps) {
bg: "background-selected", bg: "background-selected",
borderColor: "transparent" borderColor: "transparent"
} }
: { bg: "transparent", borderColor: "border" }) : { bg: "background-secondary", borderColor: "border" })
}} }}
onTouchStart={() => { onTouchStart={() => {
setCellLocation(getCellLocation(index, tableSize)); setCellLocation(getCellLocation(index, tableSize));

View File

@@ -42,7 +42,7 @@
margin-block: 0px; margin-block: 0px;
cursor: pointer; cursor: pointer;
position: relative; position: relative;
background-color: var(--border); background-color: var(--separator);
width: 100%; width: 100%;
height: 5px; height: 5px;
margin-top: 4px; margin-top: 4px;