@tldraw/tldraw 5.3.0-next.a6e6f66f8517 → 5.3.0-next.b834ca6ee453

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-cjs/index.js CHANGED
@@ -19,7 +19,7 @@ var import_tldraw = require("tldraw");
19
19
  __reExport(index_exports, require("tldraw"), module.exports);
20
20
  (0, import_tldraw.registerTldrawLibraryVersion)(
21
21
  "@tldraw/tldraw",
22
- "5.3.0-next.a6e6f66f8517",
22
+ "5.3.0-next.b834ca6ee453",
23
23
  "cjs"
24
24
  );
25
25
  //# sourceMappingURL=index.js.map
@@ -2,7 +2,7 @@ import { registerTldrawLibraryVersion } from "tldraw";
2
2
  export * from "tldraw";
3
3
  registerTldrawLibraryVersion(
4
4
  "@tldraw/tldraw",
5
- "5.3.0-next.a6e6f66f8517",
5
+ "5.3.0-next.b834ca6ee453",
6
6
  "esm"
7
7
  );
8
8
  //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tldraw/tldraw",
3
3
  "description": "A tiny little drawing editor.",
4
- "version": "5.3.0-next.a6e6f66f8517",
4
+ "version": "5.3.0-next.b834ca6ee453",
5
5
  "author": {
6
6
  "name": "tldraw Inc.",
7
7
  "email": "hello@tldraw.com"
@@ -47,7 +47,7 @@
47
47
  "src"
48
48
  ],
49
49
  "dependencies": {
50
- "tldraw": "5.3.0-next.a6e6f66f8517"
50
+ "tldraw": "5.3.0-next.b834ca6ee453"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "react": "^18.2.0 || ^19.2.1",
package/tldraw.css CHANGED
@@ -789,6 +789,16 @@ input,
789
789
  .tl-rich-text h6 {
790
790
  margin-top: 5px;
791
791
  margin-bottom: 10px;
792
+ /**
793
+ * Headings render at a larger font-size than the body text (via the browser's
794
+ * default h1–h6 sizing), so they can't inherit the container's resolved
795
+ * whole-pixel line-height — that value is derived from the base font size and
796
+ * would cram the taller lines together. Instead, scale line-height with each
797
+ * heading's own font-size using tldraw's unitless line-height multiplier, which
798
+ * the rich-text render/measure paths expose here. The 1.35 fallback mirrors the
799
+ * default theme line-height (see defaultThemes.ts).
800
+ */
801
+ line-height: var(--tl-rich-text-heading-line-height, 1.35);
792
802
  }
793
803
 
794
804
  .tl-rich-text a {
@@ -3177,6 +3187,7 @@ tldraw? probably.
3177
3187
  .tlui-toast__main {
3178
3188
  flex-grow: 2;
3179
3189
  max-width: 280px;
3190
+ min-width: 0;
3180
3191
  }
3181
3192
 
3182
3193
  .tlui-toast__content {
@@ -3185,6 +3196,7 @@ tldraw? probably.
3185
3196
  line-height: 1.4;
3186
3197
  flex-direction: column;
3187
3198
  gap: var(--tl-space-3);
3199
+ min-width: 0;
3188
3200
  }
3189
3201
 
3190
3202
  .tlui-toast__main[data-actions='true'] .tlui-toast__content {
@@ -3196,6 +3208,7 @@ tldraw? probably.
3196
3208
  color: var(--tl-color-text-1);
3197
3209
  /* this makes the default toast look better */
3198
3210
  line-height: 16px;
3211
+ overflow-wrap: anywhere;
3199
3212
  }
3200
3213
 
3201
3214
  .tlui-toast__description {
@@ -3203,6 +3216,7 @@ tldraw? probably.
3203
3216
  padding: var(--tl-space-3);
3204
3217
  margin: 0px;
3205
3218
  padding: 0px;
3219
+ overflow-wrap: anywhere;
3206
3220
  }
3207
3221
 
3208
3222
  .tlui-toast__icon + .tlui-toast__main > .tlui-toast__actions {
@@ -3329,6 +3343,7 @@ tldraw? probably.
3329
3343
  color: var(--tl-color-text-1);
3330
3344
  user-select: all;
3331
3345
  -webkit-user-select: text;
3346
+ overflow-wrap: anywhere;
3332
3347
  }
3333
3348
  .tlui-dialog__body a {
3334
3349
  color: var(--tl-color-selected);