mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
Merge pull request #8388 from streetwriters/fix/theme-issues-2
This commit is contained in:
@@ -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;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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={{
|
||||||
|
|||||||
@@ -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));
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user