Skip to content

Commit b5c300c

Browse files
authored
fix: use consistence width for popup (#175)
1 parent e215163 commit b5c300c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/editor/components/block-popover/MathEquationPopoverContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function MathEquationPopoverContent({
5757
const inputRef = useRef<HTMLTextAreaElement | null>(null);
5858

5959
return (
60-
<div className={'flex flex-col p-4 gap-3 w-[560px] max-w-[964px]'}>
60+
<div className={'flex flex-col p-4 gap-3 w-[400px]'}>
6161
<TextField
6262
inputRef={(input: HTMLTextAreaElement) => {
6363
if (!input) return;

src/components/editor/components/block-popover/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function BlockPopover() {
8585
top: panelPosition.bottom,
8686
left: panelPosition.left,
8787
},
88-
type === BlockType.ImageBlock || type === BlockType.VideoBlock ? 400 : 560,
88+
400,
8989
type === BlockType.ImageBlock || type === BlockType.VideoBlock ? 366 : 200,
9090
defaultOrigins,
9191
16

0 commit comments

Comments
 (0)