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 {
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;
};

View File

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

View File

@@ -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));

View File

@@ -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;