fix: add transparent border to prevent button size flickering (#30128)

This commit is contained in:
Pleasure1234
2025-12-25 11:50:21 +00:00
committed by GitHub
parent 44fc0c614c
commit f08d847c20
6 changed files with 14 additions and 13 deletions

View File

@ -26,8 +26,8 @@ const GlobalVariableButton = ({ disabled }: { disabled: boolean }) => {
return (
<Button
className={cn(
'p-2',
theme === 'dark' && showGlobalVariablePanel && 'rounded-lg border border-black/5 bg-white/10 backdrop-blur-sm',
'rounded-lg border border-transparent p-2',
theme === 'dark' && showGlobalVariablePanel && 'border-black/5 bg-white/10 backdrop-blur-sm',
)}
disabled={disabled}
onClick={handleClick}