Refine UI/UX across multiple components and pages
This commit focuses on refining UI/UX across various components and pages of the application. Changes include adjusting padding and spacing to enhance the overall readability and user interaction, amending hyperlink styling, modifying dropdown menus for optimized mobile experience, and adjusting key UI elements. Other modifications include revising imports for better maintainability, and adding enhancements to several UI components to improve their visual presentation.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { PageHeader } from '@kit/ui/page';
|
||||
|
||||
import { AccountLayoutMobileNavigation } from '~/(dashboard)/home/[account]/_components/account-layout-mobile-navigation';
|
||||
import { AccountLayoutMobileNavigation } from './account-layout-mobile-navigation';
|
||||
|
||||
export function AccountLayoutHeader({
|
||||
children,
|
||||
|
||||
@@ -81,6 +81,7 @@ export const AccountLayoutMobileNavigation = (
|
||||
{Links}
|
||||
|
||||
<DropdownMenuSeparator />
|
||||
|
||||
<SignOutDropdownItem onSignOut={() => signOut.mutateAsync()} />
|
||||
</DropdownMenuContent>
|
||||
</DropdownMenu>
|
||||
@@ -95,10 +96,10 @@ function DropdownLink(
|
||||
}>,
|
||||
) {
|
||||
return (
|
||||
<DropdownMenuItem asChild key={props.path}>
|
||||
<DropdownMenuItem asChild>
|
||||
<Link
|
||||
href={props.path}
|
||||
className={'flex h-12 w-full items-center space-x-4'}
|
||||
className={'flex h-12 w-full items-center space-x-2 px-3'}
|
||||
>
|
||||
{props.Icon}
|
||||
|
||||
@@ -117,13 +118,13 @@ function SignOutDropdownItem(
|
||||
) {
|
||||
return (
|
||||
<DropdownMenuItem
|
||||
className={'flex h-12 w-full items-center space-x-4'}
|
||||
className={'flex h-12 w-full items-center space-x-2'}
|
||||
onClick={props.onSignOut}
|
||||
>
|
||||
<LogOut className={'h-6'} />
|
||||
<LogOut className={'h-4'} />
|
||||
|
||||
<span>
|
||||
<Trans i18nKey={'common:signOut'} defaults={'Sign out'} />
|
||||
<Trans i18nKey={'common:signOut'} />
|
||||
</span>
|
||||
</DropdownMenuItem>
|
||||
);
|
||||
@@ -134,18 +135,16 @@ function OrganizationsModal() {
|
||||
|
||||
return (
|
||||
<Dialog>
|
||||
<DialogTrigger>
|
||||
<DialogTrigger asChild>
|
||||
<DropdownMenuItem
|
||||
className={'h-12'}
|
||||
className={'flex h-12 w-full items-center space-x-2'}
|
||||
onSelect={(e) => e.preventDefault()}
|
||||
>
|
||||
<button className={'flex items-center space-x-4'}>
|
||||
<Home className={'h-6'} />
|
||||
<Home className={'h-4'} />
|
||||
|
||||
<span>
|
||||
<Trans i18nKey={'common:yourOrganizations'} />
|
||||
</span>
|
||||
</button>
|
||||
<span>
|
||||
<Trans i18nKey={'common:yourOrganizations'} />
|
||||
</span>
|
||||
</DropdownMenuItem>
|
||||
</DialogTrigger>
|
||||
|
||||
@@ -156,7 +155,7 @@ function OrganizationsModal() {
|
||||
</DialogTitle>
|
||||
</DialogHeader>
|
||||
|
||||
<div className={'flex flex-col space-y-6 py-4'}>
|
||||
<div className={'py-16'}>
|
||||
<AccountSelector
|
||||
onAccountChange={(value) => {
|
||||
const path = value
|
||||
|
||||
@@ -47,7 +47,7 @@ async function TeamAccountSettingsPage(props: Props) {
|
||||
<PageBody>
|
||||
<div
|
||||
className={
|
||||
'container flex w-full max-w-2xl flex-1 flex-col items-center'
|
||||
'container flex w-full max-w-2xl flex-1 flex-col items-center p-0'
|
||||
}
|
||||
>
|
||||
<TeamAccountSettingsContainer account={account} paths={paths} />
|
||||
|
||||
Reference in New Issue
Block a user