Skip to content

Commit 5dce1f5

Browse files
committed
Keep matchmaking card CTA visible with constrained description area.
Adjust card body flex sizing and description overflow behavior so Show more does not overlap or displace the View profile/contact button. Made-with: Cursor
1 parent 3185999 commit 5dce1f5

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

resources/js/components/matchmaking/ToolCard.vue

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/>
1313
</div>
1414

15-
<div class="flex-grow flex flex-col gap-2 px-5 py-4">
15+
<div class="flex-grow min-h-0 flex flex-col gap-2 px-5 py-4">
1616
<div v-if="tool.types?.length" class="flex gap-2 flex-wrap mb-2">
1717
<template v-for="{ title, highlight } in tool.types">
1818
<span
@@ -58,17 +58,16 @@
5858

5959
<div
6060
v-if="tool.description"
61-
class="flex-grow min-h-0"
61+
class="flex-grow min-h-0 overflow-hidden"
6262
>
6363
<div
64-
class="relative flex-grow text-slate-500 text-[16px] leading-[22px] mb-2"
64+
class="h-full text-slate-500 text-[16px] leading-[22px] mb-2"
6565
>
6666
<div v-html="formatMultiline(showMore ? tool.description : getCollapsedText(tool.description))" />
6767

6868
<div
6969
v-if="isCollapsible(tool.description)"
70-
class="flex justify-end bottom-0 right-0 bg-white pl-0.5 text-dark-blue"
71-
:class="{ absolute: !showMore }"
70+
class="flex justify-end bg-white pl-0.5 text-dark-blue"
7271
>
7372
<button @click="onToggleShowMore">
7473
{{ showMore ? 'Show less' : '... Show more' }}

0 commit comments

Comments
 (0)