Skip to content

Commit 4e65f64

Browse files
author
Rajat
committed
refactor: Update Tailwind CSS important modifier syntax and focus outline styles across UI components.
1 parent 425af3a commit 4e65f64

File tree

96 files changed

+1774
-1183
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+1774
-1183
lines changed

apps/web/app/(with-contexts)/(with-layout)/accomplishment/[certId]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export default function AccomplishmentPage() {
8989
{/* User completion info - responsive layout */}
9090
<div className="flex flex-col sm:flex-row gap-3 sm:gap-4">
9191
{certificate.userImage && (
92-
<div className="h-24 w-24 sm:h-32 sm:w-32 md:h-40 md:w-40 rounded-full overflow-hidden flex-shrink-0 mx-auto sm:mx-0">
92+
<div className="h-24 w-24 sm:h-32 sm:w-32 md:h-40 md:w-40 rounded-full overflow-hidden shrink-0 mx-auto sm:mx-0">
9393
<Image
9494
src={certificate.userImage.file}
9595
alt={certificate.userName}

apps/web/app/(with-contexts)/course/[slug]/[id]/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default function ProductPage(props: {
7777
: TextEditorEmptyDoc;
7878

7979
return (
80-
<div className="flex flex-col pb-[100px] lg:max-w-[40rem] xl:max-w-[48rem] mx-auto">
80+
<div className="flex flex-col pb-[100px] lg:max-w-160 xl:max-w-3xl mx-auto">
8181
<h1 className="text-4xl font-semibold mb-8">{product.title}</h1>
8282
{progress?.certificateId && (
8383
<Link
@@ -115,7 +115,7 @@ export default function ProductPage(props: {
115115
)}
116116
{product.featuredImage && (
117117
<div className="flex justify-center">
118-
<div className="mt-4 mb-8 w-full md:max-w-screen-md">
118+
<div className="mt-4 mb-8 w-full md:max-w-(--breakpoint-md)">
119119
<Image
120120
alt={product.featuredImage.caption}
121121
src={product.featuredImage.file!}

apps/web/app/(with-contexts)/dashboard/(sidebar)/community/[id]/manage/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ export default function Page(props: {
833833
Cancel
834834
</Button>
835835
<Button
836-
className="!bg-red-500 text-white hover:!bg-red-600"
836+
className="bg-red-500! text-white hover:bg-red-600!"
837837
variant="destructive"
838838
onClick={confirmDeleteCategory}
839839
>

apps/web/app/(with-contexts)/dashboard/(sidebar)/product/[id]/customers/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ export default function CustomersPage() {
446446
Progress
447447
</DialogTitle>
448448
</DialogHeader>
449-
<DialogDescription>
449+
<DialogDescription className="max-h-[400px] overflow-y-scroll">
450450
{/* {product?.lessons?.map((lesson: any) => (
451451
<div key={lesson.lessonId}>
452452
<h3>{lesson.title}</h3>

apps/web/app/(with-contexts)/dashboard/(sidebar)/support/page.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ export default function Page() {
3434
<p className="mb-8 text-slate-600">
3535
If you need a helping hand, we are out there for you.
3636
</p>
37-
<div className="flex flex-col lg:!flex-row gap-4 mb-16">
38-
<Card className="lg:!w-1/3">
37+
<div className="flex flex-col lg:flex-row! gap-4 mb-16">
38+
<Card className="lg:w-1/3!">
3939
<CardHeader>
4040
<CardTitle>Documentation</CardTitle>
4141
</CardHeader>
@@ -53,7 +53,7 @@ export default function Page() {
5353
</a>
5454
</CardFooter>
5555
</Card>
56-
<Card className="lg:!w-1/3">
56+
<Card className="lg:w-1/3!">
5757
<CardHeader>
5858
<CardTitle>Ask in Discord</CardTitle>
5959
</CardHeader>
@@ -72,7 +72,7 @@ export default function Page() {
7272
</a>
7373
</CardFooter>
7474
</Card>
75-
<Card className="lg:!w-1/3">
75+
<Card className="lg:w-1/3!">
7676
<CardHeader>
7777
<CardTitle>Found a bug?</CardTitle>
7878
</CardHeader>

apps/web/components.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"rsc": true,
55
"tsx": true,
66
"tailwind": {
7-
"config": "tailwind.config.js",
7+
"config": "tailwind.config.ts",
88
"css": "styles/globals.css",
99
"baseColor": "slate",
1010
"cssVariables": true,
@@ -17,4 +17,4 @@
1717
"lib": "@/lib",
1818
"hooks": "@/hooks"
1919
}
20-
}
20+
}

apps/web/components/admin/blogs/blog-item.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default function BlogItem({
4848
<Chip
4949
className={
5050
product.published
51-
? "!bg-black text-white !border-black"
51+
? "bg-black! text-white border-black!"
5252
: ""
5353
}
5454
>

apps/web/components/admin/dashboard-skeleton/nav-user.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export function NavUser() {
6464
</SidebarMenuButton>
6565
</DropdownMenuTrigger>
6666
<DropdownMenuContent
67-
className="w-[--radix-dropdown-menu-trigger-width] min-w-56 rounded-lg"
67+
className="w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg"
6868
side={isMobile ? "bottom" : "right"}
6969
align="end"
7070
sideOffset={4}

apps/web/components/admin/dashboard-skeleton/team-switcher.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export function TeamSwitcher({
5555
</SidebarMenuButton>
5656
</DropdownMenuTrigger>
5757
<DropdownMenuContent
58-
className="w-[--radix-dropdown-menu-trigger-width] min-w-56 rounded-lg"
58+
className="w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg"
5959
align="start"
6060
side={isMobile ? "bottom" : "right"}
6161
sideOffset={4}

apps/web/components/admin/mails/editor-layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export const EmailEditorLayout = ({
129129
)}
130130
</div>
131131
</div>
132-
<div className="w-full rounded-xl overflow-hidden border bg-background/98 backdrop-blur supports-[backdrop-filter]:bg-background/80 shadow-sm flex flex-col">
132+
<div className="w-full rounded-xl overflow-hidden border bg-background/98 backdrop-blur-sm supports-backdrop-filter:bg-background/80 shadow-sm flex flex-col">
133133
{title ? (
134134
<div className="border-b px-6 py-4">
135135
<h1 className="text-lg font-semibold text-foreground">

0 commit comments

Comments
 (0)