@usememos/editor 26.10.10 → 26.10.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/base.css CHANGED
@@ -32,6 +32,9 @@
32
32
  .mbe-root > .mbe-block {
33
33
  margin: var(--mbe-block-gap) 0;
34
34
  position: relative;
35
+ /* Margins inside a block never merge with the block's own, so a block lays
36
+ out the same with or without .mbe-lazy, whose containment stops them. */
37
+ display: flow-root;
35
38
  }
36
39
  /* Block selection: whole blocks are highlighted and the caret is hidden.
37
40
  The shadow pads the highlight without moving any text. */
@@ -99,7 +102,8 @@
99
102
  /* Links: the text cursor while editing, so clicking places the caret. */
100
103
  .mbe-root a.mbe-link { cursor: text; }
101
104
  .mbe-root.mbe-readonly a.mbe-link { cursor: pointer; }
102
- .mbe-root .mbe-image { max-width: 100%; height: auto; margin: 8px 0; vertical-align: bottom; }
105
+ /* Inline even under a CSS reset such as Tailwind's preflight, which makes images blocks; alignment needs it. */
106
+ .mbe-root .mbe-image { display: inline-block; max-width: 100%; height: auto; margin: 8px 0; vertical-align: bottom; }
103
107
  /* An image alone in its paragraph moves within the column; it keeps its width. */
104
108
  .mbe-root .mbe-image-block[data-align="left"] { text-align: left; }
105
109
  .mbe-root .mbe-image-block[data-align="center"] { text-align: center; }
package/dist/style.css CHANGED
@@ -14,6 +14,7 @@
14
14
  .mbe-root > .mbe-block {
15
15
  margin: var(--mbe-block-gap) 0;
16
16
  position: relative;
17
+ display: flow-root;
17
18
  }
18
19
  .mbe-root.mbe-block-selecting {
19
20
  caret-color: transparent;
@@ -106,6 +107,7 @@
106
107
  cursor: pointer;
107
108
  }
108
109
  .mbe-root .mbe-image {
110
+ display: inline-block;
109
111
  max-width: 100%;
110
112
  height: auto;
111
113
  margin: 8px 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usememos/editor",
3
- "version": "26.10.10",
3
+ "version": "26.10.12",
4
4
  "description": "A block editor for Markdown. Zero runtime dependencies, with an optional React component.",
5
5
  "keywords": [
6
6
  "markdown",