From 0b97a4350de75149170e5bea65bbd3e731cd6c34 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 6 Jan 2025 23:05:17 -0500 Subject: [PATCH 1/2] Adding a bottom-margin to spoiler details tag. (#2882) - Fixes #2878 --- src/assets/css/main.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/assets/css/main.css b/src/assets/css/main.css index 329e734a5..328d47d67 100644 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -84,6 +84,10 @@ body { overflow-x: auto; } +.md-div details { + margin-bottom: 1rem; +} + .vote-bar { min-width: 5ch; margin-top: -6.5px; From 8e545f4914bac23be5ac280f82df893fb62d1d37 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 6 Jan 2025 23:06:12 -0500 Subject: [PATCH 2/2] Using video tag for embed video urls that are videos. (#2883) * Using video tag for embed video urls that are videos. - Fixes #2826 * Better check. --- src/shared/components/post/post-listing.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index a3c923066..c775e3947 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -245,7 +245,7 @@ export class PostListing extends Component { const url = post.url; // if direct video link or embedded video link - if (url && isVideo(url)) { + if ((url && isVideo(url)) || isVideo(post.embed_video_url ?? "")) { return (