Skip to content

Commit 3ba9773

Browse files
committed
Fix iframe widths for mobile
1 parent 0f1e457 commit 3ba9773

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

globals.css

+18
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,21 @@
55
body {
66
font-feature-settings: 'rlig' 1, 'calt' 1;
77
}
8+
9+
/* https://github.com/tjallingt/react-youtube/issues/242 */
10+
.youtubeContainer {
11+
position: relative;
12+
width: 100%;
13+
height: 0;
14+
padding-bottom: 56.25%;
15+
overflow: hidden;
16+
margin-bottom: 50px;
17+
}
18+
19+
.youtubeContainer iframe {
20+
width: 100%;
21+
height: 100%;
22+
position: absolute;
23+
top: 0;
24+
left: 0;
25+
}

pages/spicedb/getting-started/discovering-spicedb.mdx

+4-4
Original file line numberDiff line numberDiff line change
@@ -96,17 +96,17 @@ Features that distinguish SpiceDB from other systems include:
9696
SpiceDB developers and community members have recorded videos explaining concepts, modeling familiar applications, and deep diving on the tech powering everything!
9797

9898
<br />
99-
<YouTube videoId="p8xh_z6PUqE" opts={{playerVars:{start: 228}}} />
100-
<YouTube videoId="WTfZsRPDv9Q" />
101-
<YouTube videoId="x3-B9-ICj0w" />
99+
<YouTube videoId="p8xh_z6PUqE" className="youtubeContainer" opts={{playerVars:{start: 228}}} />
100+
<YouTube videoId="WTfZsRPDv9Q" className="youtubeContainer" />
101+
<YouTube videoId="x3-B9-ICj0w" className="youtubeContainer" />
102102

103103
### Join the SpiceDB Discord
104104

105105
Thousands of community members chat interactively in our [Discord][discord].
106106
Why not ask them a question or two?
107107

108108
<br />
109-
<iframe src="https://e.widgetbot.io/channels/844600078504951838/844600078948630559" allow="clipboard-write; fullscreen" height="600" width="800"></iframe>
109+
<iframe src="https://e.widgetbot.io/channels/844600078504951838/844600078948630559" allow="clipboard-write; fullscreen" className="w-fit min-h-[400px]"></iframe>
110110

111111
[discord]: https://discord.gg/spicedb
112112

0 commit comments

Comments
 (0)