Skip to content

Commit 81062f5

Browse files
Zeff01claude
andcommitted
fix: prevent team members from being cut off with long descriptions
- Remove flex-1 from main content to prevent excessive expansion - Add max height and scroll to description container - Make bottom section flex-shrink-0 to always stay visible - Ensure team members are always visible regardless of description length 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent cac3071 commit 81062f5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎apps/codebility/app/(marketing)/services/_components/ServicesServiceCard.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,12 @@ function ServiceCard({ service }: Props) {
120120

121121
<div className="flex flex-1 flex-col p-4 text-white transition-all duration-500 group-hover:translate-z-4">
122122
{/* Main Content */}
123-
<div className="flex-1 space-y-3">
123+
<div className="space-y-3">
124124
<h3 className="line-clamp-1 text-lg font-bold group-hover:text-blue-300 transition-colors lg:text-xl">
125125
{name}
126126
</h3>
127127

128-
<div className="min-h-[4rem]">
128+
<div className="min-h-[3rem] max-h-[6rem] overflow-y-auto">
129129
<p
130130
className={`text-gray-300 text-sm leading-relaxed ${!isDescriptionExpanded ? "line-clamp-3" : ""}`}
131131
>
@@ -177,7 +177,7 @@ function ServiceCard({ service }: Props) {
177177
</div>
178178

179179
{/* Bottom Section with Website Button Absolute Positioned */}
180-
<div className="relative space-y-4 mt-auto">
180+
<div className="relative space-y-3 mt-auto flex-shrink-0">
181181
{/* Team Section */}
182182
{members.length > 0 ? (
183183
<div>

0 commit comments

Comments
 (0)