Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

Commit

Permalink
properly gate bigger native videos behind the modern overlays
Browse files Browse the repository at this point in the history
  • Loading branch information
eramdam committed Nov 16, 2021
1 parent 97aa1eb commit ee2f7a1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/features/mainStyles.css
Original file line number Diff line number Diff line change
Expand Up @@ -229,12 +229,3 @@ html.dark body {
.thread + .pronouns-wrapper {
margin-top: 3px;
}

/* Bigger native videos. */
.js-modal-panel .l-table .l-cell .js-media-native-video {
max-height: 80vh !important;
max-width: 80vw !important;
height: 100% !important;
width: 100% !important;
object-fit: contain !important;
}
9 changes: 9 additions & 0 deletions src/features/modernOverlays.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
[btd-modern-overlays='true'] {
/* Bigger native videos. */
& .js-modal-panel .l-table .l-cell .js-media-native-video {
max-height: 80vh !important;
max-width: 80vw !important;
height: 100% !important;
width: 100% !important;
object-fit: contain !important;
}

& .js-mediatable .js-modal-panel .med-tweet .js-tweet > :not(.tweet-footer),
& .js-mediatable .js-modal-panel .med-embeditem .med-tray .media-preview-container ~ a {
display: none;
Expand Down

0 comments on commit ee2f7a1

Please sign in to comment.