Skip to content

Commit

Permalink
Fix videos being improperly positioned on safari (#24943)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire committed May 10, 2023
1 parent 5eeb40b commit 0eed060
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions app/javascript/styles/mastodon/components.scss
Expand Up @@ -6447,13 +6447,6 @@ a.status-card.compact:hover {
&--wide {
grid-column: span 2;
}

&.standalone {
.media-gallery__item-gifv-thumbnail {
transform: none;
top: 0;
}
}
}

.media-gallery__item-thumbnail {
Expand Down Expand Up @@ -6501,11 +6494,7 @@ a.status-card.compact:hover {
cursor: zoom-in;
height: 100%;
object-fit: cover;
position: relative;
top: 50%;
transform: translateY(-50%);
width: 100%;
z-index: 1;
}

.media-gallery__item-thumbnail-label {
Expand Down Expand Up @@ -6604,6 +6593,8 @@ a.status-card.compact:hover {
border-radius: 4px;
box-sizing: border-box;
color: $white;
display: flex;
align-items: center;

&.editable {
border-radius: 0;
Expand Down Expand Up @@ -6638,9 +6629,6 @@ a.status-card.compact:hover {
&.inline {
video {
object-fit: contain;
position: relative;
top: 50%;
transform: translateY(-50%);
}
}

Expand Down

0 comments on commit 0eed060

Please sign in to comment.