Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix responsive embed in peertube container

Chocobozzz48349818fa99
diff --git a/client/src/sass/custom-markup.scss b/client/src/sass/custom-markup.scss
index f7c8a1a47e..6ed94d56ba 100644
--- a/client/src/sass/custom-markup.scss
+++ b/client/src/sass/custom-markup.scss
@@ -1,9 +1,16 @@
peertube-container {
+ display: block;
+ margin-bottom: 2rem;
+
> .layout-row {
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 2rem;
+
+ > *:not(.header) {
+ flex-grow: 1;
+ }
}
> .layout-column {
@@ -12,19 +19,11 @@ peertube-container {
}
.header {
- margin: 30px 0 15px;
+ margin: 0 0 1rem;
> h4 {
margin-bottom: 0;
+ line-height: 1; // Align with the top of the container
}
}
}
-
-// Workaround to detect iOS that doesn't support gap in flexbox
-@supports not (inset: 0) {
- peertube-video-miniature,
- peertube-playlist-miniature,
- peertube-channel-miniature {
- margin-inline-end: 2rem;
- }
-}