Skip to content

Commit

Permalink
fix img gallery height, youtube embed 100% width on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalmi committed Dec 7, 2023
1 parent fbd6285 commit 80d711f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app/src/Element/Embed/HyperText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
4 changes: 4 additions & 0 deletions packages/app/src/Element/Text.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@
margin: 0;
}

.gallery-item div {
height: 100%;
}

.gallery-item img {
object-fit: cover;
width: 100%;
Expand Down

0 comments on commit 80d711f

Please sign in to comment.