Skip to content

Commit

Permalink
fix: catalog card hover glitch (#1741)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmahidalgo committed Jun 1, 2023
1 parent 059c5a8 commit 76ee7f7
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions webapp/src/components/AssetCard/AssetCard.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
overflow: visible;
}

.ui.card.AssetCard.catalog {
height: 360px;
}

.AssetCard.ui.card > .content.catalog {
padding: 14px 14px 18px 14px;
}
Expand All @@ -28,7 +32,6 @@
.ui.card.AssetCard > .content,
.ui.cards > .card.AssetCard > .content {
height: 185px;
transition: height 0.3s !important;
}

.ui.card.AssetCard > .content > .header:not(.ui),
Expand Down Expand Up @@ -193,6 +196,7 @@
@media (min-width: 1199px) {
.AssetCard:hover .AssetImage.catalog {
height: 161px;
transition: none;
transition: height 0.3s !important;
}

Expand All @@ -203,9 +207,6 @@
opacity: 0;
transition: height 0.1s, opacity 0.6s;
}
.ui.card.AssetCard.catalog {
height: 360px;
}
.AssetCard:hover .extraInformation {
visibility: visible;
margin-top: 5px;
Expand Down Expand Up @@ -240,7 +241,7 @@
.ui.card.AssetCard:hover > .content.catalog,
.ui.cards > .card.AssetCard:hover > .content.catalog {
position: absolute;
height: 198px;
height: 206px;
margin-top: 161px;
width: 100%;
background-color: var(--card);
Expand All @@ -256,6 +257,10 @@
}

@media (max-width: 1199px) {
.AssetCard .AssetImage.catalog,
.AssetImage.catalog .image-wrapper {
height: 123px;
}
.AssetCard .LandBubble {
align-self: center;
font-size: x-small;
Expand Down Expand Up @@ -289,6 +294,9 @@
}

@media (max-width: 768px) {
.ui.card.AssetCard.catalog {
height: 345px;
}
.AssetCard.ui.card > .content.catalog,
.ui.cards > .AssetCard.card > .content.catalog {
display: flex;
Expand Down

0 comments on commit 76ee7f7

Please sign in to comment.