fix: buttons after switching to tailwind-compat reset

This commit is contained in:
Dominic Elm 2024-07-11 21:45:08 +02:00
parent 2c1f32c143
commit 5fa2ee53cc
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ export const BaseChat = React.forwardRef<HTMLDivElement, BaseChatProps>(
disabled={input.length === 0 || enhancingPrompt} disabled={input.length === 0 || enhancingPrompt}
className={classNames({ className={classNames({
'opacity-100!': enhancingPrompt, 'opacity-100!': enhancingPrompt,
'text-accent! pr-1.5': promptEnhanced, 'text-accent! pr-1.5 enabled:hover:bg-accent/12!': promptEnhanced,
})} })}
onClick={() => enhancePrompt?.()} onClick={() => enhancePrompt?.()}
> >

View File

@ -38,7 +38,7 @@ export const IconButton = memo(
return ( return (
<button <button
className={classNames( className={classNames(
'flex items-center text-gray-600 enabled:hover:text-gray-900 rounded-md p-1 enabled:hover:bg-gray-200/80 disabled:cursor-not-allowed', 'flex items-center text-gray-600 bg-transparent enabled:hover:text-gray-900 rounded-md p-1 enabled:hover:bg-gray-200/80 disabled:cursor-not-allowed',
{ {
[classNames('opacity-30', disabledClassName)]: disabled, [classNames('opacity-30', disabledClassName)]: disabled,
}, },