Skip to content

Commit 76998c6

Browse files
committed
Normalize matchmaking card heights and remove overflow layout artifacts.
Stretch grid items uniformly, use full-height cards, and simplify description wrapper sizing so directory cards stay visually consistent. Made-with: Cursor
1 parent db75843 commit 76998c6

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

resources/js/components/matchmaking/MatchMakingToolForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@
261261
<div class="bg-yellow-50 pb-20">
262262
<div class="relative z-10 codeweek-container">
263263
<div
264-
class="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6 lg:gap-10"
264+
class="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6 lg:gap-10 items-stretch"
265265
>
266266
<template v-for="tool in tools" :key="tool.id">
267267
<tool-card :tool="tool"></tool-card>

resources/js/components/matchmaking/ToolCard.vue

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<template>
2-
<div class="flex flex-col bg-white rounded-lg overflow-hidden">
2+
<div class="flex h-full flex-col bg-white rounded-lg overflow-hidden">
33
<div
4-
class="flex-shrink-0 flex justify-center items-center w-full h-[178px]"
5-
:class="[tool.avatar_dark ? 'bg-black' : 'bg-white']"
4+
class="flex-shrink-0 flex justify-center items-center w-full h-[178px] bg-[#15509e]"
65
>
76
<img
87
:src="tool.avatar || '/images/matchmaking-tool/tool-placeholder.png'"
@@ -14,7 +13,7 @@
1413
</div>
1514

1615
<div
17-
class="flex-grow flex flex-col gap-2 px-5 py-4 h-fit"
16+
class="flex-grow flex flex-col gap-2 px-5 py-4"
1817
:class="{ 'max-h-[450px]': needShowMore && !showMore }"
1918
>
2019
<div v-if="tool.types?.length" class="flex gap-2 flex-wrap mb-2">
@@ -63,7 +62,7 @@
6362
<div
6463
v-if="tool.description"
6564
ref="descriptionContainerRef"
66-
class="flex-grow h-full"
65+
class="min-h-0"
6766
:class="{ 'overflow-hidden': needShowMore && !showMore }"
6867
>
6968
<div

0 commit comments

Comments
 (0)