Skip to content

Commit b1a8ef3

Browse files
committed
fix: update spacing and layout styles
1 parent 0813111 commit b1a8ef3

20 files changed

Lines changed: 46 additions & 45 deletions

src/components/command-menu.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function CommandMenu() {
4646
runCommand(() => navigate({ to: navItem.url }))
4747
}}
4848
>
49-
<div className='me-2 flex h-4 w-4 items-center justify-center'>
49+
<div className='flex size-4 items-center justify-center'>
5050
<ArrowRight className='text-muted-foreground/80 size-2' />
5151
</div>
5252
{navItem.title}
@@ -61,7 +61,7 @@ export function CommandMenu() {
6161
runCommand(() => navigate({ to: subItem.url }))
6262
}}
6363
>
64-
<div className='me-2 flex h-4 w-4 items-center justify-center'>
64+
<div className='flex size-4 items-center justify-center'>
6565
<ArrowRight className='text-muted-foreground/80 size-2' />
6666
</div>
6767
{navItem.title} <ChevronRight /> {subItem.title}

src/components/config-drawer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export function ConfigDrawer() {
4848
variant='ghost'
4949
aria-label='Open theme settings'
5050
aria-describedby='config-drawer-description'
51+
className='rounded-full'
5152
>
5253
<Settings aria-hidden='true' />
5354
</Button>

src/components/layout/header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function Header({ className, fixed, children, ...props }: HeaderProps) {
4141
'after:bg-background/20 after:absolute after:inset-0 after:-z-10 after:backdrop-blur-lg'
4242
)}
4343
>
44-
<SidebarTrigger variant='outline' className='scale-125 sm:scale-100' />
44+
<SidebarTrigger variant='outline' className='max-md:scale-125' />
4545
<Separator orientation='vertical' className='h-6' />
4646
{children}
4747
</div>

src/components/profile-dropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function ProfileDropdown() {
2525
</DropdownMenuTrigger>
2626
<DropdownMenuContent className='w-56' align='end' forceMount>
2727
<DropdownMenuLabel className='font-normal'>
28-
<div className='flex flex-col space-y-1'>
28+
<div className='flex flex-col gap-1.5'>
2929
<p className='text-sm leading-none font-medium'>satnaing</p>
3030
<p className='text-muted-foreground text-xs leading-none'>
3131
satnaingdev@gmail.com

src/components/search.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function Search({
1818
<Button
1919
variant='outline'
2020
className={cn(
21-
'bg-muted/25 group text-muted-foreground hover:bg-accent relative h-8 w-full flex-1 justify-start rounded-md text-sm font-normal shadow-none sm:pe-12 md:w-40 md:flex-none lg:w-56 xl:w-64',
21+
'bg-muted/25 group text-muted-foreground hover:bg-accent relative h-8 w-full flex-1 justify-start rounded-md text-sm font-normal shadow-none sm:w-40 sm:pe-12 md:flex-none lg:w-56 xl:w-64',
2222
className
2323
)}
2424
onClick={() => setOpen(true)}
@@ -28,7 +28,7 @@ export function Search({
2828
className='absolute start-1.5 top-1/2 -translate-y-1/2'
2929
size={16}
3030
/>
31-
<span className='ms-3'>{placeholder}</span>
31+
<span className='ms-4'>{placeholder}</span>
3232
<kbd className='bg-muted group-hover:bg-accent pointer-events-none absolute end-[0.3rem] top-[0.3rem] hidden h-5 items-center gap-1 rounded border px-1.5 font-mono text-[10px] font-medium opacity-100 select-none sm:flex'>
3333
<span className='text-xs'></span>K
3434
</kbd>

src/features/auth/forgot-password/components/forgot-password-form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export function ForgotPasswordForm({
5252
control={form.control}
5353
name='email'
5454
render={({ field }) => (
55-
<FormItem className='space-y-1'>
55+
<FormItem>
5656
<FormLabel>Email</FormLabel>
5757
<FormControl>
5858
<Input placeholder='name@example.com' {...field} />

src/features/settings/account/account-form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export function AccountForm() {
145145
>
146146
<CheckIcon
147147
className={cn(
148-
'me-2 h-4 w-4',
148+
'size-4',
149149
language.value === field.value
150150
? 'opacity-100'
151151
: 'opacity-0'

src/features/settings/appearance/appearance-form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export function AppearanceForm() {
8787
control={form.control}
8888
name='theme'
8989
render={({ field }) => (
90-
<FormItem className='space-y-1'>
90+
<FormItem>
9191
<FormLabel>Theme</FormLabel>
9292
<FormDescription>
9393
Select the theme for the dashboard.

src/features/settings/display/display-form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export function DisplayForm() {
8686
return (
8787
<FormItem
8888
key={item.id}
89-
className='flex flex-row items-start space-y-0 space-x-3'
89+
className='flex flex-row items-start'
9090
>
9191
<FormControl>
9292
<Checkbox

src/features/settings/notifications/notifications-form.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,25 +63,25 @@ export function NotificationsForm() {
6363
<RadioGroup
6464
onValueChange={field.onChange}
6565
defaultValue={field.value}
66-
className='flex flex-col space-y-1'
66+
className='flex flex-col gap-2'
6767
>
68-
<FormItem className='flex items-center space-y-0 space-x-3'>
68+
<FormItem className='flex items-center'>
6969
<FormControl>
7070
<RadioGroupItem value='all' />
7171
</FormControl>
7272
<FormLabel className='font-normal'>
7373
All new messages
7474
</FormLabel>
7575
</FormItem>
76-
<FormItem className='flex items-center space-y-0 space-x-3'>
76+
<FormItem className='flex items-center'>
7777
<FormControl>
7878
<RadioGroupItem value='mentions' />
7979
</FormControl>
8080
<FormLabel className='font-normal'>
8181
Direct messages and mentions
8282
</FormLabel>
8383
</FormItem>
84-
<FormItem className='flex items-center space-y-0 space-x-3'>
84+
<FormItem className='flex items-center'>
8585
<FormControl>
8686
<RadioGroupItem value='none' />
8787
</FormControl>
@@ -188,7 +188,7 @@ export function NotificationsForm() {
188188
control={form.control}
189189
name='mobile'
190190
render={({ field }) => (
191-
<FormItem className='relative flex flex-row items-start space-y-0 space-x-3'>
191+
<FormItem className='relative flex flex-row items-start'>
192192
<FormControl>
193193
<Checkbox
194194
checked={field.value}

0 commit comments

Comments
 (0)