Skip to content

Commit 3a19d98

Browse files
authored
Merge pull request #78 from code4rena-dev/samus/contest-tile-responsive
[Compact contest tile] mobile responsive changes
2 parents 9867ed7 + f4dc329 commit 3a19d98

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

src/lib/ContestTile/ContestTile.scss

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,6 @@
375375
header {
376376
.header--status {
377377
display: flex;
378-
flex-wrap: wrap;
379-
align-items: center;
380378
justify-content: space-between;
381379
column-gap: 1.5rem;
382380
row-gap: 0.5rem;
@@ -404,11 +402,9 @@
404402
}
405403

406404
&.type {
407-
min-width: auto;
408-
margin-left: auto;
409-
overflow: hidden;
410-
text-overflow: ellipsis;
411-
white-space: nowrap;
405+
flex-grow: 0; // Prevent the type element from growing
406+
flex-shrink: 0; // Prevent the type element from shrinking
407+
white-space: nowrap; // Prevent text from wrapping
412408
}
413409
}
414410
}
@@ -815,4 +811,15 @@
815811
}
816812
}
817813
}
814+
}
815+
816+
// Compact tile overrides
817+
.c4contesttile.compact {
818+
.c4conteststatus {
819+
align-items: start;
820+
821+
.statusindicator {
822+
margin-top: 8px;
823+
}
824+
}
818825
}

0 commit comments

Comments
 (0)