Rearrange CSS classes in various components

This commit reorders CSS classes in multiple files to maintain consistent code style. The switch does not change any style attribute's functionality or the display, but assists in code readability and organization.
This commit is contained in:
giancarlo
2024-04-18 19:59:55 +08:00
parent 427ea2f845
commit 903733ad60
5 changed files with 6 additions and 8 deletions
@@ -85,7 +85,7 @@ function SidebarContainer(props: {
/> />
</SidebarContent> </SidebarContent>
<SidebarContent className={`h-[calc(100%-160px)] overflow-y-auto mt-5`}> <SidebarContent className={`mt-5 h-[calc(100%-160px)] overflow-y-auto`}>
<AccountLayoutSidebarNavigation account={account} /> <AccountLayoutSidebarNavigation account={account} />
</SidebarContent> </SidebarContent>
@@ -56,7 +56,7 @@ function TeamAccountHomePage({
account={params.account} account={params.account}
> >
<Button size={'sm'}> <Button size={'sm'}>
<PlusCircle className={'h-4 mr-1'} /> <PlusCircle className={'mr-1 h-4'} />
<span>Add Widget</span> <span>Add Widget</span>
</Button> </Button>
</AccountLayoutHeader> </AccountLayoutHeader>
@@ -32,7 +32,7 @@ export function HomeSidebar() {
</If> </If>
</SidebarContent> </SidebarContent>
<SidebarContent className={`h-[calc(100%-160px)] overflow-y-auto mt-5`}> <SidebarContent className={`mt-5 h-[calc(100%-160px)] overflow-y-auto`}>
<SidebarNavigation config={personalAccountSidebarConfig} /> <SidebarNavigation config={personalAccountSidebarConfig} />
</SidebarContent> </SidebarContent>
+2 -4
View File
@@ -44,12 +44,10 @@ export function PageHeader({
mobileNavigation?: React.ReactNode; mobileNavigation?: React.ReactNode;
}>) { }>) {
return ( return (
<div <div className={'flex min-h-16 items-center justify-between border-b px-4'}>
className={'flex min-h-16 items-center justify-between border-b px-4'}
>
<div <div
className={ className={
'flex items-center space-x-4 lg:flex-col lg:space-y-0.5 lg:items-start lg:space-x-0' 'flex items-center space-x-4 lg:flex-col lg:items-start lg:space-x-0 lg:space-y-0.5'
} }
> >
<div className={'flex items-center lg:hidden'}>{mobileNavigation}</div> <div className={'flex items-center lg:hidden'}>{mobileNavigation}</div>