fable-editor 1.2.8 → 1.3.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fable-editor",
3
- "version": "1.2.8",
3
+ "version": "1.3.0",
4
4
  "description": "FableEditor — a rich text editor with React and Angular wrappers",
5
5
  "author": "Sajin Satheesan <an.sajinsatheesan@gmail.com>",
6
6
  "repository": {
package/style.css CHANGED
@@ -358,6 +358,20 @@
358
358
  height: auto;
359
359
  }
360
360
 
361
+ /* the preview dialog mounts on document.body, outside .earea, so it needs
362
+ the same clamping or an image previews at its raw pixel size */
363
+ .dlg .pv-box img, .dlg .pv-box video {
364
+ max-width: 100%;
365
+ height: auto;
366
+ }
367
+
368
+ /* preview is sized to the editor's own content column so what it shows is
369
+ the size that will actually be sent; that needs more room than the
370
+ standard dialog cap allows */
371
+ .dlg.dlg-preview {
372
+ max-width: 96vw;
373
+ }
374
+
361
375
  /* image / video upload placeholder */
362
376
  .earea .img-ph {
363
377
  display: flex;