style: adjust size of top bar icons
This commit is contained in:
@@ -10,7 +10,7 @@ export function Titlebar({
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
'sticky top-0 w-full z-40 bg-background [&_svg]:size-4 [&_svg]:shrink-0',
|
'sticky top-0 w-full h-12 z-40 bg-background [&_svg]:size-5 [&_svg]:shrink-0',
|
||||||
className
|
className
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ const buttonVariants = cva(
|
|||||||
sm: 'h-8 rounded-md px-3 text-xs',
|
sm: 'h-8 rounded-md px-3 text-xs',
|
||||||
lg: 'h-10 rounded-md px-8',
|
lg: 'h-10 rounded-md px-8',
|
||||||
icon: 'h-9 w-9',
|
icon: 'h-9 w-9',
|
||||||
'titlebar-icon': 'h-10 w-10 rounded-lg'
|
'titlebar-icon': 'h-10 w-10 rounded-lg [&_svg]:size-5'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
defaultVariants: {
|
defaultVariants: {
|
||||||
|
|||||||
@@ -87,5 +87,5 @@ export type TPrimaryPageLayoutRef = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function PrimaryPageTitlebar({ children }: { children?: React.ReactNode }) {
|
function PrimaryPageTitlebar({ children }: { children?: React.ReactNode }) {
|
||||||
return <Titlebar className="h-12 p-1">{children}</Titlebar>
|
return <Titlebar className="p-1">{children}</Titlebar>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ export function SecondaryPageTitlebar({
|
|||||||
hideBackButton?: boolean
|
hideBackButton?: boolean
|
||||||
}): JSX.Element {
|
}): JSX.Element {
|
||||||
return (
|
return (
|
||||||
<Titlebar className="h-12 flex gap-1 p-1 items-center justify-between font-semibold">
|
<Titlebar className="flex gap-1 p-1 items-center justify-between font-semibold">
|
||||||
{hideBackButton ? (
|
{hideBackButton ? (
|
||||||
<div className="flex gap-2 items-center pl-3 w-fit truncate text-lg font-semibold">
|
<div className="flex gap-2 items-center pl-3 w-fit truncate text-lg font-semibold">
|
||||||
{title}
|
{title}
|
||||||
|
|||||||
Reference in New Issue
Block a user