From b8bb9f43e366792441fa03c588c5be730c4c310e Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Fri, 24 Feb 2023 17:01:48 -0800 Subject: [PATCH] Minor tweaks --- src-web/App.tsx | 2 +- src-web/components/Button.tsx | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src-web/App.tsx b/src-web/App.tsx index a5690df0..286f6b61 100644 --- a/src-web/App.tsx +++ b/src-web/App.tsx @@ -66,7 +66,7 @@ function App() { return ( <> -
+
diff --git a/src-web/components/Button.tsx b/src-web/components/Button.tsx index b4405b15..c63e5bdc 100644 --- a/src-web/components/Button.tsx +++ b/src-web/components/Button.tsx @@ -27,16 +27,15 @@ export const Button = forwardRef(function Button className={classnames( className, 'rounded-md flex items-center', + // 'active:translate-y-[0.5px] active:scale-[0.99]', justify === 'start' && 'justify-start', justify === 'center' && 'justify-center', size === 'md' && 'h-10 px-4', size === 'sm' && 'h-8 px-3 text-sm', size === 'xs' && 'h-6 px-2 text-sm', - color === undefined && - 'hover:bg-gray-500/[0.1] active:bg-gray-500/[0.15] text-gray-800 hover:text-gray-900', - color === 'primary' && 'bg-blue-500 hover:bg-blue-500/90 active:bg-blue-500/80 text-white', - color === 'secondary' && - 'bg-violet-500 hover:bg-violet-500/90 active:bg-violet-500/80 text-white', + color === undefined && 'hover:bg-gray-500/[0.1] text-gray-800 hover:text-gray-900', + color === 'primary' && 'bg-blue-500 hover:bg-blue-500/90 text-white', + color === 'secondary' && 'bg-violet-500 hover:bg-violet-500/90 text-white', )} {...props} >