Allow mastodon embeds to display properly

Ref #125
This commit is contained in:
Keegan Rankin 2024-10-03 14:01:46 -07:00
parent ab61041078
commit 3231199c04
2 changed files with 4 additions and 1 deletions

View file

@ -6,4 +6,7 @@
iframe { iframe {
width: 100%; width: 100%;
height: 100%; height: 100%;
&.mastodon-embed {
height: revert-layer;
}
} }

View file

@ -8,7 +8,7 @@
'use strict'; 'use strict';
// Find all iframes // Find all iframes
var $iframes = $( "iframe" ); var $iframes = $( "iframe" ).not(".mastodon-embed");
// Find and save the aspect ratio for all iframes // Find and save the aspect ratio for all iframes
$iframes.each(function () { $iframes.each(function () {