Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert always show preview videos on small devices #1340

Merged
merged 3 commits into from
May 2, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ui/v2.5/src/components/Changelog/versions/v070.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
* Change performer text query to search by name and alias only.

### 🐛 Bug fixes
* Reverted video previews always playing on small devices.
* 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.
* Fix error preventing adding a new library path when an existing library path is missing.
Expand Down
37 changes: 9 additions & 28 deletions ui/v2.5/src/components/Scenes/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -214,36 +214,17 @@ textarea.scene-description {
}
}

@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;
}
&:hover,
&:active {
.scene-specs-overlay,
.rating-banner,
.scene-studio-overlay {
opacity: 0;
transition: opacity 0.5s;
}
}

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