Skip to content

Commit

Permalink
Frontpage Mobile Fix (stashapp#4057)
Browse files Browse the repository at this point in the history
Change CSS To show Correct dimensions on Mobile
  • Loading branch information
yoshnopa authored Sep 11, 2023
1 parent 24e4719 commit f237a58
Showing 1 changed file with 57 additions and 58 deletions.
115 changes: 57 additions & 58 deletions ui/v2.5/src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -494,85 +494,84 @@ textarea.text-input {
margin-right: 0;
}
}
@media (min-width: 576px) {
.zoom-0 {
width: 240px;

.scene-card-preview {
height: 135px;
}
.zoom-0 {
width: 240px;

.portrait {
height: 180px;
}
.scene-card-preview {
height: 135px;
}

.gallery-card-image,
.tag-card-image {
max-height: 180px;
}
.portrait {
height: 180px;
}

.zoom-1 {
width: 320px;
.gallery-card-image,
.tag-card-image {
max-height: 180px;
}
}

.scene-card-preview {
height: 180px;
}
.zoom-1 {
width: 320px;

.portrait {
height: 240px;
}
.scene-card-preview {
height: 180px;
}

.gallery-card-image,
.tag-card-image {
max-height: 240px;
}
.portrait {
height: 240px;
}

.image-card-preview {
height: 240px;
}
.gallery-card-image,
.tag-card-image {
max-height: 240px;
}

.zoom-2 {
width: 480px;
.image-card-preview {
height: 240px;
}
}

.scene-card-preview {
height: 270px;
}
.zoom-2 {
width: 480px;

.portrait {
height: 360px;
}
.scene-card-preview {
height: 270px;
}

.gallery-card-image,
.tag-card-image {
max-height: 360px;
}
.portrait {
height: 360px;
}

.image-card-preview {
height: 360px;
}
.gallery-card-image,
.tag-card-image {
max-height: 360px;
}

.zoom-3 {
width: 640px;
.image-card-preview {
height: 360px;
}
}

.scene-card-preview {
height: 360px;
}
.zoom-3 {
width: 640px;

.portrait {
height: 480px;
}
.scene-card-preview {
height: 360px;
}

.tag-card-image,
.gallery-card-image {
max-height: 480px;
}
.portrait {
height: 480px;
}

.image-card-preview {
height: 480px;
}
.tag-card-image,
.gallery-card-image {
max-height: 480px;
}

.image-card-preview {
height: 480px;
}
}

Expand Down

0 comments on commit f237a58

Please sign in to comment.