Skip to content

Commit d9ed16f

Browse files
committed
fix: prevent horizontal scrollbar for main menu
1 parent 06d7033 commit d9ed16f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/common/components/input/buttons/ButtonBase.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,13 @@ const ButtonBase = (props: ButtonBaseProps): ReactElement => {
2828
title={getFormattedTooltipTitle(tooltipTitle)}
2929
placement={tooltipPlacement}
3030
>
31-
<span>
31+
{props.disabled ? (
32+
<span>
33+
<MaterialButton {...materialButtonProps} />
34+
</span>
35+
) : (
3236
<MaterialButton {...materialButtonProps} />
33-
</span>
37+
)}
3438
</Tooltip>
3539
) : (
3640
<MaterialButton {...materialButtonProps} />

0 commit comments

Comments
 (0)