Skip to content

Commit

Permalink
Fix media items
Browse files Browse the repository at this point in the history
  • Loading branch information
ronilaukkarinen committed Oct 5, 2024
1 parent 6fa6a14 commit e068e12
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
### 2.0.0rc55: 2024-10-05

* Fix broken media gallery in compose form
* Fix double outline in media items

### 2.0.0rc54: 2024-09-29

* Improve more icon in mobile when logged out, fix alignment
Expand Down
2 changes: 1 addition & 1 deletion layout-multiple-columns.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Mastodon Bird UI by @[email protected]
2.0.0rc54 */
2.0.0rc55 */

/* CSS variables */
:root {
Expand Down
13 changes: 11 additions & 2 deletions layout-single-column.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Mastodon Bird UI by @[email protected]
2.0.0rc54 */
2.0.0rc55 */

/* CSS variables */
:root {
Expand Down Expand Up @@ -1715,6 +1715,10 @@ body.embed .detailed-status .video-player,
width: 100% !important;
}

.layout-single-column .media-gallery__item {
outline: 0;
}

.layout-single-column .media-gallery > .media-gallery__item:nth-of-type(odd),
.layout-single-column .media-gallery > .media-gallery__item:nth-of-type(odd) > a,
.layout-single-column .media-gallery__preview:nth-of-type(odd),
Expand Down Expand Up @@ -2119,7 +2123,7 @@ body.embed .detailed-status__meta .detailed-status__link .fa-retweet,
.layout-single-column .status .status__content:has(.status__content__text:empty) + .media-gallery,
.layout-single-column .detailed-status .status__content:has(.status__content__text:empty) + .audio-player,
.layout-single-column .detailed-status .status__content:has(.status__content__text:empty) + .video-player,
.layout-single-column .detailed-status .status__content:has(.status__content__text:empty) + .media-gallery {
.layout-single-column .detailed-status .status__content:has(.status__content__text:empty) + .media-gallery:not(.compose-form__uploads) {
margin-top: calc(var(--gap-default) / 2);
}

Expand Down Expand Up @@ -3180,6 +3184,11 @@ body.embed .button.logo-button:hover,
z-index: 4;
}

body .compose-form .compose-form__uploads {
padding-left: 0;
padding-right: 0;
}

/* New compose form buttons from 4.3.0-alpha 2024-01-27 */
.layout-single-column .compose-form__dropdowns {
gap: 10px;
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.0rc54",
"version": "2.0.0rc55",
"description": "",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit e068e12

Please sign in to comment.