feat: Full width images (#4389)

* feat: Full width images

* lint

* fix: Enable TOC overlaid on full size images

* Vendorize react-medium-image-zoom

* tsc

* fix

* Remove body scroll lock
This commit is contained in:
Tom Moor
2022-12-17 17:17:15 -08:00
committed by GitHub
parent f8ba393f7c
commit acf74b83a8
19 changed files with 1415 additions and 104 deletions

View File

@@ -247,9 +247,6 @@ li {
pointer-events: ${props.readOnly ? "initial" : "none"};
display: inline-block;
max-width: 100%;
transition-property: width, height;
transition-duration: 150ms;
transition-timing-function: ease-in-out;
}
.ProseMirror-selectednode img {
@@ -289,6 +286,20 @@ li {
clear: initial;
}
.image-full-width {
width: initial;
max-width: 100vw;
clear: both;
position: initial;
img {
max-width: 100vw;
max-height: 50vh;
object-fit: cover;
object-position: center;
}
}
.ProseMirror-hideselection *::selection {
background: transparent;
}