mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-01 19:49:54 +02:00
editor: fix image padding in readonly mode
This commit is contained in:
@@ -105,6 +105,7 @@ export function ImageComponent(
|
||||
return (
|
||||
<>
|
||||
<Box
|
||||
className=".image-container"
|
||||
sx={{
|
||||
...getAlignmentStyles(node.attrs),
|
||||
height: float ? size.height : "unset",
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user