Skip to content

Commit

Permalink
Fix video aspect-ratio for embeds
Browse files Browse the repository at this point in the history
  • Loading branch information
ronilaukkarinen committed Feb 10, 2024
1 parent 64c1429 commit b0be998
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### 2.0.0rc13: 2024-02-10
### 2.0.0rc14: 2024-02-10

* Prepare for 4.3.0 release with SVG icons
* Add icon support for new SVG icons, replace icons for Home, Notifications, Explore, Live feeds, Private mentions, bookmarks, Favorites, Preferences and Lists
Expand Down Expand Up @@ -41,6 +41,7 @@
* Add WordPress profile icon
* Add Friendica profile icon #101 (thanks @expertmanofficial!)
* Add an icon for genderless pronouns #101
* Fix video aspect-ratio for embeds

### 1.8.3: 2023-11-12

Expand Down
7 changes: 6 additions & 1 deletion layout-single-column.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Mastodon Bird UI by @rolle@mementomori.social
2.0.0rc13 */
2.0.0rc14 */

/* CSS variables */
:root {
Expand Down Expand Up @@ -1572,6 +1572,11 @@ body.embed .video-player,
width: unset !important;
}

body.embed [data-component="Video"] ~ div {
/* stylelint-disable-next-line */
aspect-ratio: unset !important;
}

body.embed .spoiler-button + .media-gallery__item > .media-gallery__preview,
.layout-single-column .spoiler-button + .media-gallery__item > .media-gallery__preview {
/* stylelint-disable-next-line */
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mastodon-bird-ui",
"version": "2.0.0rc13",
"version": "2.0.0rc14",
"description": "",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit b0be998

Please sign in to comment.