A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix: allow setting resize handle color
thecodrr0f83caae60e4
diff --git a/packages/editor/src/components/resizer/index.tsx b/packages/editor/src/components/resizer/index.tsxindex e156f70ad..eb7b80f5e 100644--- a/packages/editor/src/components/resizer/index.tsx+++ b/packages/editor/src/components/resizer/index.tsx@@ -1,3 +1,4 @@+import { SchemeColors } from "@streetwriters/theme/dist/theme/colorscheme";import { Resizable } from "re-resizable";import { PropsWithChildren } from "react";import { Icon, Icons } from "../../toolbar";@@ -8,10 +9,12 @@ type ResizerProps = {selected: boolean;width?: number;height?: number;+ handleColor?: keyof SchemeColors;onResize: (width: number, height: number) => void;};export function Resizer(props: PropsWithChildren<ResizerProps>) {- const { editor, selected, onResize, width, height, children } = props;+ const { editor, selected, onResize, width, height, children, handleColor } =+ props;if (!editor.isEditable) return <>{children}</>;@@ -46,7 +49,7 @@ export function Resizer(props: PropsWithChildren<ResizerProps>) {}}path={Icons.resize}size={25}- color="icon"+ color={handleColor || "icon"}/>),}}