File tree Expand file tree Collapse file tree
apps/codebility/app/home/interns/_components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ import { Badge } from "@codevs/ui/badge";
1919
2020import TechStacks from "./TechStacks" ;
2121
22- // Line 21: ADDED - Maximum visible projects to prevent card expansion (CBP-10)
23- const MAX_VISIBLE_PROJECTS = 8 ;
22+ // Line 21: REVISED - Show only 2 projects to prevent card expansion (CBP-10)
23+ const MAX_VISIBLE_PROJECTS = 2 ;
2424
2525interface CodevCardProps {
2626 codev : Codev ;
@@ -202,11 +202,11 @@ export default function CodevCard({ codev }: CodevCardProps) {
202202 ) }
203203 </ div >
204204
205- { /* Line 217-243: FIXED Projects section with truncation (CBP-10) */ }
205+ { /* Line 217-243: FIXED Projects section - Show only 2 projects + indicator (CBP-10) */ }
206206 < div className = "mt-auto flex flex-wrap justify-end gap-2" >
207207 { hasItems ( codev . projects ) ? (
208208 < >
209- { /* Line 220-231: CHANGED - Render only first MAX_VISIBLE_PROJECTS badges */ }
209+ { /* Line 220-231: Show only first 2 projects */ }
210210 { codev . projects . slice ( 0 , MAX_VISIBLE_PROJECTS ) . map ( ( project ) => (
211211 < Badge
212212 variant = "info"
@@ -219,7 +219,7 @@ export default function CodevCard({ codev }: CodevCardProps) {
219219 </ Badge >
220220 ) ) }
221221
222- { /* Line 233-239: ADDED - "+X more" overflow indicator */ }
222+ { /* Line 233-239: "+X more" indicator for projects beyond 2 */ }
223223 { codev . projects . length > MAX_VISIBLE_PROJECTS && (
224224 < span className = "self-center text-xs font-medium text-gray-500 dark:text-gray-400" >
225225 +{ codev . projects . length - MAX_VISIBLE_PROJECTS } more
You can’t perform that action at this time.
0 commit comments