Skip to content

Commit 9b51872

Browse files
committed
refactor: ♻️ Make corner radius more consistent across UI
1 parent 43eebfc commit 9b51872

33 files changed

+34
-485
lines changed

components/editor/mentions-list.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<Command class="rounded-lg border shadow-md min-w-[200px]" :selected-value="items[selectedIndex]?.key">
2+
<Command class="rounded border shadow-md min-w-[200px]" :selected-value="items[selectedIndex]?.key">
33
<CommandList>
44
<CommandEmpty>No results found.</CommandEmpty>
55
<CommandGroup class="mentions-group" heading="Users">

components/notes/content.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
$style.content,
2020
]" v-html="content" v-render-emojis="emojis"></div>
2121
<div v-if="isOverflowing && collapsed"
22-
class="absolute inset-x-0 bottom-0 h-36 bg-gradient-to-t from-black/5 to-transparent rounded-b-md"></div>
22+
class="absolute inset-x-0 bottom-0 h-36 bg-gradient-to-t from-black/5 to-transparent rounded-b"></div>
2323
<Button v-if="isOverflowing" @click="collapsed = !collapsed"
2424
class="absolute bottom-2 right-1/2 translate-x-1/2">{{
2525
collapsed

components/profiles/profile-badge.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</path>
1010
</g>
1111
</svg>
12-
<img v-else-if="icon" :src="icon" alt="" class="size-4 rounded-sm" />
12+
<img v-else-if="icon" :src="icon" alt="" class="size-4 rounded" />
1313
{{ name }}
1414
</Badge>
1515
</TooltipTrigger>
@@ -33,4 +33,4 @@ defineProps<{
3333
icon?: string;
3434
verified?: boolean;
3535
}>();
36-
</script>
36+
</script>

components/sidebars/account-switcher.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<DropdownMenuTrigger :as-child="true">
3636
<slot />
3737
</DropdownMenuTrigger>
38-
<DropdownMenuContent class="w-[--radix-dropdown-menu-trigger-width] min-w-56 rounded-lg" side="bottom"
38+
<DropdownMenuContent class="w-[--radix-dropdown-menu-trigger-width] min-w-56 rounded" side="bottom"
3939
align="end" :side-offset="4">
4040
<DropdownMenuLabel class="p-0 font-normal">
4141
<Button @click="switchAccount(identity.account.id)" variant="ghost" size="lg"

components/sidebars/sidebar.vue

+1-15
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,6 @@
11
<script setup lang="ts">
22
import { cn } from "@/lib/utils";
3-
import { ChevronDownIcon } from "lucide-vue-next";
4-
import {
5-
Breadcrumb,
6-
BreadcrumbItem,
7-
BreadcrumbLink,
8-
BreadcrumbList,
9-
BreadcrumbPage,
10-
BreadcrumbSeparator,
11-
} from "~/components/ui/breadcrumb";
12-
import { Separator } from "~/components/ui/separator";
13-
import {
14-
SidebarInset,
15-
SidebarProvider,
16-
SidebarTrigger,
17-
} from "~/components/ui/sidebar";
3+
import { SidebarInset, SidebarProvider } from "~/components/ui/sidebar";
184
import { SettingIds } from "~/settings";
195
import Timelines from "../navigation/timelines.vue";
206
import LeftSidebar from "./left-sidebar.vue";

components/ui/alert-dialog/AlertDialogContent.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
3333
v-bind="forwarded"
3434
:class="
3535
cn(
36-
'fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg',
36+
'fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded',
3737
props.class,
3838
)
3939
"

components/ui/alert/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export { default as AlertDescription } from "./AlertDescription.vue";
55
export { default as AlertTitle } from "./AlertTitle.vue";
66

77
export const alertVariants = cva(
8-
"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
8+
"relative w-full rounded border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
99
{
1010
variants: {
1111
variant: {

components/ui/aspect-ratio/AspectRatio.vue

-11
This file was deleted.

components/ui/aspect-ratio/index.ts

-1
This file was deleted.

components/ui/avatar/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const avatarVariant = cva(
1515
},
1616
shape: {
1717
circle: "rounded-full",
18-
square: "rounded-md",
18+
square: "rounded",
1919
},
2020
},
2121
},

components/ui/breadcrumb/Breadcrumb.vue

-13
This file was deleted.

components/ui/breadcrumb/BreadcrumbEllipsis.vue

-22
This file was deleted.

components/ui/breadcrumb/BreadcrumbItem.vue

-16
This file was deleted.

components/ui/breadcrumb/BreadcrumbLink.vue

-23
This file was deleted.

components/ui/breadcrumb/BreadcrumbList.vue

-16
This file was deleted.

components/ui/breadcrumb/BreadcrumbPage.vue

-19
This file was deleted.

components/ui/breadcrumb/BreadcrumbSeparator.vue

-21
This file was deleted.

components/ui/breadcrumb/index.ts

-7
This file was deleted.

components/ui/button/index.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { type VariantProps, cva } from "class-variance-authority";
22
export { default as Button } from "./Button.vue";
33

44
export const buttonVariants = cva(
5-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
5+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
66
{
77
variants: {
88
variant: {
@@ -19,9 +19,9 @@ export const buttonVariants = cva(
1919
},
2020
size: {
2121
default: "h-9 px-4 py-2",
22-
sm: "h-8 rounded-md px-3 text-xs",
23-
lg: "h-10 rounded-md px-8",
24-
icon: "h-9 w-9",
22+
sm: "h-8 px-3 text-xs",
23+
lg: "h-10 px-8",
24+
icon: "size-9",
2525
},
2626
},
2727
defaultVariants: {

components/ui/carousel/Carousel.vue

-65
This file was deleted.

components/ui/carousel/CarouselContent.vue

-29
This file was deleted.

components/ui/carousel/CarouselItem.vue

-23
This file was deleted.

0 commit comments

Comments
 (0)