mobile: fix editor

This commit is contained in:
ammarahm-ed
2023-08-03 18:24:25 +05:00
committed by Ammar Ahmed
parent c5db2e0ea9
commit 2bed812df1
9 changed files with 29 additions and 12 deletions

View File

@@ -57,7 +57,6 @@ export const FontSize = Extension.create<FontSizeOptions>({
if (!attributes.fontSize) {
return {};
}
return {
style: `font-size: ${attributes.fontSize}`
};

View File

@@ -37,7 +37,6 @@ function _Counter(props: CounterProps) {
alignItems: "stretch",
borderRadius: "default",
overflow: "hidden",
height: "100%",
cursor: "pointer",
":hover": {
bg: "hover-secondary"
@@ -51,7 +50,10 @@ function _Counter(props: CounterProps) {
title={`Decrease ${title}`}
icon="minus"
variant={"small"}
onClick={onDecrease}
onClick={(e) => {
e.stopPropagation();
onDecrease();
}}
/>
<Text
@@ -71,7 +73,10 @@ function _Counter(props: CounterProps) {
title={`Increase ${title}`}
icon="plus"
variant={"small"}
onClick={onIncrease}
onClick={(e) => {
e.stopPropagation();
onIncrease();
}}
/>
</Flex>
);

View File

@@ -52,6 +52,7 @@ export function MoreTools(props: MoreToolsProps) {
/>
<PopupWrapper
isOpen={isOpen}
scope="editorToolbar"
group={group || "toolbarGroup"}
id={popupId}
onClosed={onClosed}

View File

@@ -39,8 +39,8 @@ export function ToolbarGroup(props: ToolbarGroupProps) {
<Flex
className="toolbar-group"
sx={{
gap: "small",
p: "small",
gap: [0, 0, "small"],
p: ["4px", "4px", "small"],
flexShrink: 0,
...sx
}}

View File

@@ -238,7 +238,12 @@ export function ColorPicker(props: ColorPickerProps) {
{onClose && (
<Button
variant={"icon"}
sx={{ display: ["block", "none"], px: 2 }}
sx={{
display: ["block", "none"],
px: 2,
width: "50px",
alignSelf: "center"
}}
onClick={onClose}
>
<Icon path={Icons.close} size="big" />