diff --git a/src/index.css b/src/index.css index 8fef08a8..23c4f215 100644 --- a/src/index.css +++ b/src/index.css @@ -52,7 +52,6 @@ img, video { white-space: pre-wrap; overflow-wrap: break-word; word-break: break-word; - overflow: hidden; } /** Scroll bar settings **/ @@ -73,3 +72,13 @@ img, video { @apply bg-neutral-600; @apply rounded-md; } + +.full-width-note > div > img, .full-width-note > div > video { + @apply -mx-2 md:mx-0; + max-width: 100vw; + @apply rounded-none md:rounded-sm; +} + +.full-width-note > iframe { + width: 100vw; +} \ No newline at end of file diff --git a/src/js/components/embed/Image.tsx b/src/js/components/embed/Image.tsx index 1acd4930..940c7c5c 100644 --- a/src/js/components/embed/Image.tsx +++ b/src/js/components/embed/Image.tsx @@ -16,14 +16,12 @@ const Image: Embed = { setShowModal(true); }; return ( -
-
- -
+
+ setShowModal(false)}> diff --git a/src/js/components/embed/Video.tsx b/src/js/components/embed/Video.tsx index 284b204c..3722031e 100644 --- a/src/js/components/embed/Video.tsx +++ b/src/js/components/embed/Video.tsx @@ -4,9 +4,9 @@ const Video: Embed = { regex: /(https?:\/\/.*\.(?:mp4|webm|ogg|mov)(?:\?\S*)?)/gi, settingsKey: 'enableVideo', component: ({ match }) => ( -
+