forked from Kieran/snort
fix img gallery height, youtube embed 100% width on mobile
This commit is contained in:
parent
fbd6285b47
commit
80d711f75f
@ -46,7 +46,7 @@ export default function HyperText({ link, depth, showLinkPreview, children }: Hy
|
||||
if (youtubeId) {
|
||||
return (
|
||||
<iframe
|
||||
className="w-max"
|
||||
className="-mx-4 md:mx-0 w-max"
|
||||
src={`https://www.youtube.com/embed/${youtubeId}`}
|
||||
title="YouTube video player"
|
||||
key={youtubeId}
|
||||
|
@ -48,6 +48,10 @@
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.gallery-item div {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.gallery-item img {
|
||||
object-fit: cover;
|
||||
width: 100%;
|
||||
|
Loading…
Reference in New Issue
Block a user