diff --git a/app/packages/core/src/plugins/SchemaIO/components/ActionsMenu.tsx b/app/packages/core/src/plugins/SchemaIO/components/ActionsMenu.tsx index 08c41781e3..1c742d2cf1 100644 --- a/app/packages/core/src/plugins/SchemaIO/components/ActionsMenu.tsx +++ b/app/packages/core/src/plugins/SchemaIO/components/ActionsMenu.tsx @@ -9,7 +9,7 @@ import { Menu, MenuItem, Stack, - Tooltip + Tooltip, } from "@mui/material"; import React, { useCallback } from "react"; import { getColorByCode } from "../utils"; @@ -21,7 +21,7 @@ export default function ActionsMenu(props: ActionsPropsType) { if (actions.length <= maxInline) { return ( - + {actions.map((action) => ( ))} @@ -74,7 +74,8 @@ function ActionsOverflowMenu(props: ActionsPropsType) { } function Action(props: ActionPropsType) { - const { label, name, onClick, icon, variant, mode, color, size, tooltip } = props; + const { label, name, onClick, icon, variant, mode, color, size, tooltip } = + props; const resolvedColor = color ? getColorByCode(color) : undefined; const Icon = icon ? ( @@ -88,25 +89,29 @@ function Action(props: ActionPropsType) { [onClick, props] ); - const content = mode === "inline" ? ( - - ) : ( - - {Icon && {Icon}} - {label || name} - - ); + const content = + mode === "inline" ? ( + + ) : ( + + {Icon && {Icon}} + + {label || name} + + + ); return tooltip ? ( - {content} {/* Use to wrap the child to avoid DOM issues */} + {content}{" "} + {/* Use to wrap the child to avoid DOM issues */} ) : ( content diff --git a/app/packages/core/src/plugins/SchemaIO/components/TableView.tsx b/app/packages/core/src/plugins/SchemaIO/components/TableView.tsx index 7deb8e852e..8567db0760 100644 --- a/app/packages/core/src/plugins/SchemaIO/components/TableView.tsx +++ b/app/packages/core/src/plugins/SchemaIO/components/TableView.tsx @@ -141,8 +141,9 @@ export default function TableView(props: ViewPropsType) { {hasRowActions && ( { handleCellClick(-1, -1); }}