Compare commits

...

2 Commits

Author SHA1 Message Date
Ammar Ahmed
5292f39b97 editor: fix class name 2025-03-06 14:16:36 +05:00
Ammar Ahmed
2447acca03 editor: fix image padding in readonly mode 2025-03-06 14:08:29 +05:00
2 changed files with 3 additions and 2 deletions

View File

@@ -105,6 +105,7 @@ export function ImageComponent(
return (
<>
<Box
className="image-container"
sx={{
...getAlignmentStyles(node.attrs),
height: float ? size.height : "unset",

View File

@@ -601,11 +601,11 @@ p > *::selection {
pointer-events: none;
}
.ProseMirror > p[data-spacing="double"] .resizer {
.ProseMirror > p[data-spacing="double"] .image-container {
margin-bottom: 1em;
}
.ProseMirror > p[data-spacing="single"] .resizer {
.ProseMirror > p[data-spacing="single"] .image-container {
margin-top: 1em !important;
margin-bottom: 1em;
}