Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
mmtftr committed Dec 16, 2024
2 parents 33c4561 + 002be47 commit c628604
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions frontend/src/components/QuestionCard.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { Card } from "@/components/ui/card";
import { DifficultyLevel } from "@/services/api/programmingForumSchemas";

import placeholderProfile from "@/assets/placeholder_profile.png";
import { ArrowRight, MessageSquare, Star, StarsIcon } from "lucide-react";
import React from "react";
import { Link } from "react-router-dom";
import placeholderProfile from "@/assets/placeholder_profile.png";


interface QuestionCardProps {
id: number;
Expand All @@ -29,10 +28,10 @@ export const QuestionCard = React.forwardRef<HTMLDivElement, QuestionCardProps>(
({ id, title, content, votes, answerCount, author, difficulty }, ref) => {
return (
<Card
className="flex flex-1 border-none bg-neutral-100 px-6 py-8 shadow-sm"
className="flex w-full flex-1 border-none bg-neutral-100 px-6 py-8 shadow-sm"
ref={ref}
>
<div className="flex flex-col gap-6">
<div className="flex w-full flex-col gap-6">
<h3 className="line-clamp-2 text-xl font-semibold text-gray-800">
{title}
</h3>
Expand All @@ -59,8 +58,7 @@ export const QuestionCard = React.forwardRef<HTMLDivElement, QuestionCardProps>(
{author && (
<Link to={`/users/${author.id}`} className="h-10 w-10">
<img
src={author?.profilePicture ||
placeholderProfile}
src={author?.profilePicture || placeholderProfile}
alt={author.name}
className="h-full w-full rounded-full object-cover"
/>
Expand Down

0 comments on commit c628604

Please sign in to comment.