Просмотр исходного кода

fix tool icon button on mobile (#1489)

Faustino Kialungila 5 лет назад
Родитель
Сommit
582d26e858
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      src/components/ToolButton.tsx

+ 3 - 3
src/components/ToolButton.tsx

@@ -50,9 +50,9 @@ export const ToolButton = React.forwardRef(function (
         className={`ToolIcon_type_button ToolIcon ${sizeCn}${
         className={`ToolIcon_type_button ToolIcon ${sizeCn}${
           props.selected ? " ToolIcon--selected" : ""
           props.selected ? " ToolIcon--selected" : ""
         } ${props.className || ""} ${
         } ${props.className || ""} ${
-          props.visible
-            ? "ToolIcon_type_button--hide"
-            : "ToolIcon_type_button--show"
+          props.visible || props.visible == null
+            ? "ToolIcon_type_button--show"
+            : "ToolIcon_type_button--hide"
         }`}
         }`}
         title={props.title}
         title={props.title}
         aria-label={props["aria-label"]}
         aria-label={props["aria-label"]}