Skip to content

Job application tracker and AI-powered job search assistant. Helps job seekers manage their search journey with AI resume review, job matching, task logging, and application analytics, all while keeping your data private.

feat(profile): make resume section Edit/Delete buttons icon-only with the job details pencil and trash icons, and give every card the same 8px button inset

Khuram Niaz7265048760dd
diff --git a/src/components/profile/CertificationCard.tsx b/src/components/profile/CertificationCard.tsx
index dfabff7..af3e701 100644
--- a/src/components/profile/CertificationCard.tsx
+++ b/src/components/profile/CertificationCard.tsx
@@ -8,7 +8,7 @@ import {
CardTitle,
} from "../ui/card";
import { Button } from "../ui/button";
-import { Edit, ExternalLink } from "lucide-react";
+import { Pencil, ExternalLink } from "lucide-react";
import { format } from "date-fns";
interface CertificationCardProps {
@@ -37,15 +37,14 @@ function CertificationCard({
<CardHeader className="p-2 pb-0 flex-row justify-between relative">
<CardTitle className="text-xl pl-4">{title}</CardTitle>
<Button
+ title="Edit"
variant="ghost"
- size="sm"
- className="h-8 gap-1 absolute top-0 right-1"
+ size="icon"
+ className="h-8 w-8 absolute top-2 right-2"
onClick={() => openDialogForEdit(id!)}
>
- <Edit className="h-3.5 w-3.5" />
- <span className="sr-only sm:not-sr-only sm:whitespace-nowrap">
- Edit
- </span>
+ <Pencil className="h-3.5 w-3.5" />
+ <span className="sr-only">Edit</span>
</Button>
</CardHeader>
<CardContent>
diff --git a/src/components/profile/ContactInfoCard.tsx b/src/components/profile/ContactInfoCard.tsx
index 5f6c478..69c8a36 100644
--- a/src/components/profile/ContactInfoCard.tsx
+++ b/src/components/profile/ContactInfoCard.tsx
@@ -2,7 +2,7 @@
import { ContactInfo } from "@/models/profile.model";
import { Card, CardDescription, CardHeader, CardTitle } from "../ui/card";
import { Button } from "../ui/button";
-import { Edit } from "lucide-react";
+import { Pencil } from "lucide-react";
interface ContactInfoCardProps {
contactInfo: ContactInfo | undefined;
@@ -57,15 +57,14 @@ function ContactInfoCard({ contactInfo, openDialog }: ContactInfoCardProps) {
)}
</div>
<Button
+ title="Edit"
variant="ghost"
- size="sm"
- className="h-8 gap-1 absolute top-0 right-1"
+ size="icon"
+ className="h-8 w-8 absolute top-2 right-2"
onClick={openDialog}
>
- <Edit className="h-3.5 w-3.5" />
- <span className="sr-only sm:not-sr-only sm:whitespace-nowrap">
- Edit
- </span>
+ <Pencil className="h-3.5 w-3.5" />
+ <span className="sr-only">Edit</span>
</Button>
</CardHeader>
</Card>
diff --git a/src/components/profile/EducationCard.tsx b/src/components/profile/EducationCard.tsx
index 3a7ece9..4a5e8a5 100644
--- a/src/components/profile/EducationCard.tsx
+++ b/src/components/profile/EducationCard.tsx
@@ -8,7 +8,7 @@ import {
CardTitle,
} from "../ui/card";
import { Button } from "../ui/button";
-import { Edit } from "lucide-react";
+import { Pencil } from "lucide-react";
import { format } from "date-fns";
import { TipTapContentViewer } from "../TipTapContentViewer";
@@ -40,15 +40,14 @@ function EducationCard({
<CardHeader className="p-2 pb-0 flex-row justify-between relative">
<CardTitle className="text-xl pl-4">{institution}</CardTitle>
<Button
+ title="Edit"
variant="ghost"
- size="sm"
- className="h-8 gap-1 absolute top-0 right-1"
+ size="icon"
+ className="h-8 w-8 absolute top-2 right-2"
onClick={() => openDialogForEdit(id!)}
>
- <Edit className="h-3.5 w-3.5" />
- <span className="sr-only sm:not-sr-only sm:whitespace-nowrap">
- Edit
- </span>
+ <Pencil className="h-3.5 w-3.5" />
+ <span className="sr-only">Edit</span>
</Button>
</CardHeader>
<CardContent>
diff --git a/src/components/profile/ExperienceCard.tsx b/src/components/profile/ExperienceCard.tsx
index 6bb9230..8ee286b 100644
--- a/src/components/profile/ExperienceCard.tsx
+++ b/src/components/profile/ExperienceCard.tsx
@@ -8,7 +8,7 @@ import {
CardTitle,
} from "../ui/card";
import { Button } from "../ui/button";
-import { Edit } from "lucide-react";
+import { Pencil } from "lucide-react";
import { format } from "date-fns";
import { TipTapContentViewer } from "../TipTapContentViewer";
@@ -40,15 +40,14 @@ function ExperienceCard({
<CardHeader className="p-2 pb-0 flex-row justify-between relative">
<CardTitle className="text-xl pl-4">{jobTitle.label}</CardTitle>
<Button
+ title="Edit"
variant="ghost"
- size="sm"
- className="h-8 gap-1 absolute top-0 right-1"
+ size="icon"
+ className="h-8 w-8 absolute top-2 right-2"
onClick={() => openDialogForEdit(id!)}
>
- <Edit className="h-3.5 w-3.5" />
- <span className="sr-only sm:not-sr-only sm:whitespace-nowrap">
- Edit
- </span>
+ <Pencil className="h-3.5 w-3.5" />
+ <span className="sr-only">Edit</span>
</Button>
</CardHeader>
<CardContent>
diff --git a/src/components/profile/SkillsSectionCard.tsx b/src/components/profile/SkillsSectionCard.tsx
index 805a5f3..32774e2 100644
--- a/src/components/profile/SkillsSectionCard.tsx
+++ b/src/components/profile/SkillsSectionCard.tsx
@@ -2,7 +2,7 @@
import { ResumeSection, Skill } from "@/models/profile.model";
import { Card, CardContent, CardHeader, CardTitle } from "../ui/card";
import { Button } from "../ui/button";
-import { Edit, Trash2 } from "lucide-react";
+import { Pencil, Trash2 } from "lucide-react";
import {
AlertDialog,
AlertDialogAction,
@@ -48,27 +48,25 @@ function SkillsSectionCard({
<CardHeader className="p-2 pb-0 flex-row justify-end items-center">
<div className="flex gap-1">
<Button
+ title="Edit"
variant="ghost"
- size="sm"
- className="h-8 gap-1"
+ size="icon"
+ className="h-8 w-8"
onClick={openDialogForEdit}
>
- <Edit className="h-3.5 w-3.5" />
- <span className="sr-only sm:not-sr-only sm:whitespace-nowrap">
- Edit
- </span>
+ <Pencil className="h-3.5 w-3.5" />
+ <span className="sr-only">Edit</span>
</Button>
<AlertDialog>
<AlertDialogTrigger asChild>
<Button
+ title="Delete"
variant="ghost"
- size="sm"
- className="h-8 gap-1 text-destructive hover:text-destructive"
+ size="icon"
+ className="h-8 w-8 text-destructive hover:text-destructive"
>
<Trash2 className="h-3.5 w-3.5" />
- <span className="sr-only sm:not-sr-only sm:whitespace-nowrap">
- Delete
- </span>
+ <span className="sr-only">Delete</span>
</Button>
</AlertDialogTrigger>
<AlertDialogContent>
diff --git a/src/components/profile/SummarySectionCard.tsx b/src/components/profile/SummarySectionCard.tsx
index 98ed7a2..a7a1e42 100644
--- a/src/components/profile/SummarySectionCard.tsx
+++ b/src/components/profile/SummarySectionCard.tsx
@@ -1,4 +1,4 @@
-import { Edit } from "lucide-react";
+import { Pencil } from "lucide-react";
import { Button } from "../ui/button";
import { Card, CardContent, CardHeader, CardTitle } from "../ui/card";
import { ResumeSection } from "@/models/profile.model";
@@ -20,15 +20,14 @@ function SummarySectionCard({
<Card>
<CardHeader className="p-2 pb-0 flex-row justify-end items-center">
<Button
+ title="Edit"
variant="ghost"
- size="sm"
- className="h-8 gap-1"
+ size="icon"
+ className="h-8 w-8"
onClick={openDialogForEdit}
>
- <Edit className="h-3.5 w-3.5" />
- <span className="sr-only sm:not-sr-only sm:whitespace-nowrap">
- Edit
- </span>
+ <Pencil className="h-3.5 w-3.5" />
+ <span className="sr-only">Edit</span>
</Button>
</CardHeader>
<CardContent>