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