Skip to content

Commit 58c50a7

Browse files
committed
Fix mobile ClanCard hover overflow and lock layout heights
1 parent a975f3f commit 58c50a7

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

frontend-next-migration/src/shared/ui/v2/MobileCard/ui/MobileCard.module.scss

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@
176176
// ClanCard
177177
.MobileCard.ClanCard {
178178
@include card-dimensions;
179+
position: relative;
179180
overflow: hidden;
180181
border-radius: var(--corner-radius-web);
181182
background-color: var(--base-card-background);
@@ -193,6 +194,8 @@
193194
justify-content: center;
194195
gap: 0.25rem;
195196
align-items: center;
197+
position: relative;
198+
z-index: 1;
196199

197200
.Title1 {
198201
color: var(--white);
@@ -202,9 +205,7 @@
202205
text-align: center;
203206
max-width: 100%;
204207
white-space: normal;
205-
overflow: hidden;
206208
word-break: break-word;
207-
text-overflow: clip;
208209
}
209210

210211
.Text { margin: 0; }
@@ -216,10 +217,14 @@
216217
justify-content: center;
217218
align-items: center;
218219
padding: 0.25rem 0;
220+
position: relative;
221+
z-index: 0;
219222

220223
.Image {
221224
height: auto;
225+
max-width: 100%;
222226
object-fit: contain !important;
227+
transform-origin: center;
223228
}
224229
}
225230

@@ -284,4 +289,21 @@
284289
.MobileCard.ClanCard > .TextContainer:first-of-type .Title1 {
285290
font-size: 1rem;
286291
}
287-
}
292+
}
293+
294+
// Override withScalableLink behaviour for ClanCard only
295+
.withScalableLink {
296+
.MobileCard.ClanCard {
297+
> .TextContainer:first-of-type {
298+
height: 24% !important;
299+
}
300+
301+
> .ImageContainer {
302+
height: 48% !important;
303+
}
304+
305+
> .TextContainer:last-of-type {
306+
height: 28% !important;
307+
}
308+
}
309+
}

0 commit comments

Comments
 (0)