Skip to content

Commit

Permalink
Revert "Revert always show preview videos on small devices (stashapp#…
Browse files Browse the repository at this point in the history
…1340)"

This reverts commit d7a04ce.
  • Loading branch information
kermieisinthehouse committed Aug 18, 2021
1 parent 7b3b2ae commit 58a09c5
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 10 deletions.
1 change: 0 additions & 1 deletion ui/v2.5/src/components/Changelog/versions/v070.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@

### 🐛 Bug fixes
* Fix image/gallery title not being set during scan.
* Reverted video previews always playing on small devices.
* Fix performer/studio being cleared when skipped in scene tagger.
* Fixed error when auto-tagging for performers/studios/tags with regex characters in the name.
* Fix scraped performer image not updating after clearing the current image when creating a new performer.
Expand Down
37 changes: 28 additions & 9 deletions ui/v2.5/src/components/Scenes/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -199,17 +199,36 @@ textarea.scene-description {
}
}

&:hover,
&:active {
.scene-specs-overlay,
.rating-banner,
.scene-studio-overlay {
opacity: 0;
transition: opacity 0.5s;
@media (pointer: fine) {
&:hover {
.scene-specs-overlay,
.rating-banner,
.scene-studio-overlay {
opacity: 0;
transition: opacity 0.5s;
}

.scene-studio-overlay:hover {
opacity: 0.75;
transition: opacity 0.5s;
}

.scene-card-check {
opacity: 0.75;
transition: opacity 0.5s;
}

.scene-card-preview-video {
top: 0;
transition-delay: 0.2s;
}
}
}

.scene-studio-overlay:hover,
.scene-studio-overlay:active {
/* replicate hover for non-hoverable interfaces */
@media (hover: none), (pointer: coarse), (pointer: none) {
/* don't hide overlays */
.scene-studio-overlay {
opacity: 0.75;
transition: opacity 0.5s;
}
Expand Down

0 comments on commit 58a09c5

Please sign in to comment.