Skip to content

Commit

Permalink
Merge pull request #207 from authzed/fix-iframe-widths
Browse files Browse the repository at this point in the history
Fix iframe widths for mobile
  • Loading branch information
samkim authored Mar 5, 2024
2 parents 0f1e457 + 3ba9773 commit bde0c19
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
18 changes: 18 additions & 0 deletions globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,21 @@
body {
font-feature-settings: 'rlig' 1, 'calt' 1;
}

/* https://github.com/tjallingt/react-youtube/issues/242 */
.youtubeContainer {
position: relative;
width: 100%;
height: 0;
padding-bottom: 56.25%;
overflow: hidden;
margin-bottom: 50px;
}

.youtubeContainer iframe {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
}
8 changes: 4 additions & 4 deletions pages/spicedb/getting-started/discovering-spicedb.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,17 @@ Features that distinguish SpiceDB from other systems include:
SpiceDB developers and community members have recorded videos explaining concepts, modeling familiar applications, and deep diving on the tech powering everything!

<br />
<YouTube videoId="p8xh_z6PUqE" opts={{playerVars:{start: 228}}} />
<YouTube videoId="WTfZsRPDv9Q" />
<YouTube videoId="x3-B9-ICj0w" />
<YouTube videoId="p8xh_z6PUqE" className="youtubeContainer" opts={{playerVars:{start: 228}}} />
<YouTube videoId="WTfZsRPDv9Q" className="youtubeContainer" />
<YouTube videoId="x3-B9-ICj0w" className="youtubeContainer" />

### Join the SpiceDB Discord

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

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

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

Expand Down

0 comments on commit bde0c19

Please sign in to comment.