From eb5ac2fc2d5608d0cf7580ef09fe7975d694ead4 Mon Sep 17 00:00:00 2001 From: Lakhan Baheti <94619783+1akhanBaheti@users.noreply.github.com> Date: Tue, 26 Aug 2025 02:12:04 +0530 Subject: [PATCH] [WIKI-602] chore: disable image alignment tooltip for touch devices (#7642) * chore: disable image alignment tooltip for touch devices * chore: added touch-select-none style --- .../custom-image/components/toolbar/alignment.tsx | 7 ++++--- .../extensions/custom-image/components/toolbar/root.tsx | 1 + packages/editor/src/styles/editor.css | 6 ++++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/packages/editor/src/core/extensions/custom-image/components/toolbar/alignment.tsx b/packages/editor/src/core/extensions/custom-image/components/toolbar/alignment.tsx index 3790fa547..dbbc42e4c 100644 --- a/packages/editor/src/core/extensions/custom-image/components/toolbar/alignment.tsx +++ b/packages/editor/src/core/extensions/custom-image/components/toolbar/alignment.tsx @@ -10,11 +10,12 @@ import { IMAGE_ALIGNMENT_OPTIONS } from "../../utils"; type Props = { activeAlignment: TCustomImageAlignment; handleChange: (alignment: TCustomImageAlignment) => void; + isTouchDevice: boolean; toggleToolbarViewStatus: (val: boolean) => void; }; export const ImageAlignmentAction: React.FC = (props) => { - const { activeAlignment, handleChange, toggleToolbarViewStatus } = props; + const { activeAlignment, handleChange, isTouchDevice, toggleToolbarViewStatus } = props; // states const [isDropdownOpen, setIsDropdownOpen] = useState(false); // refs @@ -30,7 +31,7 @@ export const ImageAlignmentAction: React.FC = (props) => { return (
- +