Skip to content

Commit

Permalink
Moved p-4 card to common styles
Browse files Browse the repository at this point in the history
  • Loading branch information
atrincas authored and agnlez committed Nov 18, 2024
1 parent 88c9286 commit c67b6a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/src/components/ui/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { cva, VariantProps } from "class-variance-authority";

import { cn } from "@/lib/utils";

const cardVariants = cva("rounded-2xl text-card-foreground border shadow", {
const cardVariants = cva("rounded-2xl text-card-foreground border shadow p-4", {
variants: {
variant: {
default: "bg-card",
Expand Down
6 changes: 3 additions & 3 deletions client/src/containers/profile/user-details/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import { Card } from "@/components/ui/card";
const UserDetails: FC = () => {
return (
<div className="mt-4 space-y-4">
<Card variant="secondary" className="border-dashed p-4">
<Card variant="secondary" className="border-dashed">
<AccountDetails />
</Card>
<Card variant="secondary" className="border-dashed p-4">
<Card variant="secondary" className="border-dashed">
<UpdateEmailForm />
</Card>
<Card variant="secondary" className="border-dashed p-4">
<Card variant="secondary" className="border-dashed">
<EditPassword />
</Card>
</div>
Expand Down

0 comments on commit c67b6a3

Please sign in to comment.