Refine app view switcher
This commit is contained in:
parent
0b47d9d618
commit
3f633787cf
@ -13,7 +13,7 @@ export default function Switcher({
|
|||||||
return (
|
return (
|
||||||
<div className={clsx(
|
<div className={clsx(
|
||||||
'flex divide-x overflow-hidden',
|
'flex divide-x overflow-hidden',
|
||||||
'rounded-md',
|
'rounded-[7px]',
|
||||||
'divide-medium',
|
'divide-medium',
|
||||||
type === 'regular' &&
|
type === 'regular' &&
|
||||||
'outline-medium shadow-[0_2px_4px_rgba(0,0,0,0.07)]',
|
'outline-medium shadow-[0_2px_4px_rgba(0,0,0,0.07)]',
|
||||||
|
|||||||
@ -38,7 +38,7 @@ export default function SwitcherItem({
|
|||||||
const widthClass = width === 'narrow' ? WIDTH_CLASS_NARROW : WIDTH_CLASS;
|
const widthClass = width === 'narrow' ? WIDTH_CLASS_NARROW : WIDTH_CLASS;
|
||||||
const className = clsx(
|
const className = clsx(
|
||||||
'flex items-center justify-center',
|
'flex items-center justify-center',
|
||||||
`${widthClass} h-[28px]`,
|
`${widthClass} h-[30px]`,
|
||||||
isInteractive && 'cursor-pointer',
|
isInteractive && 'cursor-pointer',
|
||||||
isInteractive && 'hover:bg-gray-100/60 active:bg-gray-100',
|
isInteractive && 'hover:bg-gray-100/60 active:bg-gray-100',
|
||||||
isInteractive && 'dark:hover:bg-gray-900/75 dark:active:bg-gray-900',
|
isInteractive && 'dark:hover:bg-gray-900/75 dark:active:bg-gray-900',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user