diff --git a/portal-ui/public/images/search-icn.svg b/portal-ui/public/images/search-icn.svg new file mode 100644 index 000000000..b75ed005b --- /dev/null +++ b/portal-ui/public/images/search-icn.svg @@ -0,0 +1,3 @@ + + + diff --git a/portal-ui/src/screens/Console/CommandBar.tsx b/portal-ui/src/screens/Console/CommandBar.tsx index 3e8dccf07..211ff2c0c 100644 --- a/portal-ui/src/screens/Console/CommandBar.tsx +++ b/portal-ui/src/screens/Console/CommandBar.tsx @@ -29,6 +29,8 @@ import { Action } from "kbar/lib/types"; import { Theme } from "@mui/material/styles"; import makeStyles from "@mui/styles/makeStyles"; import { routesAsKbarActions } from "./kbar-actions"; +import { Box } from "@mui/material"; +import { MenuExpandedIcon } from "../../icons/SidebarMenus"; const useStyles = makeStyles((theme: Theme) => ({ resultItem: { @@ -36,23 +38,28 @@ const useStyles = makeStyles((theme: Theme) => ({ gap: "8px", alignItems: "center", fontSize: 14, + flex: 1, + justifyContent: "space-between", "& .min-icon": { - color: theme.palette.primary.main, - width: "18px", - height: "18px", + width: "17px", + height: "17px", }, }, })); const searchStyle = { padding: "12px 16px", - fontSize: "16px", width: "100%", boxSizing: "border-box" as React.CSSProperties["boxSizing"], outline: "none", border: "none", - background: "transparent", - color: "#111111", + color: "#858585", + boxShadow: "0px 3px 5px #00000017", + borderRadius: "4px 4px 0px 0px", + fontSize: "14px", + backgroundImage: "url(/images/search-icn.svg)", + backgroundRepeat: "no-repeat", + backgroundPosition: "95%", }; const animatorStyle = { @@ -60,16 +67,18 @@ const animatorStyle = { width: "100%", background: "white", color: "black", - borderRadius: "8px", + borderRadius: "4px", overflow: "hidden", - boxShadow: "rgba(0, 0, 0, 0.2) 0px 6px 20px 0px", + boxShadow: "0px 3px 20px #00000055", }; const groupNameStyle = { - padding: "8px 16px", + marginLeft: "30px", + padding: "19px 0px 14px 0px", fontSize: "10px", textTransform: "uppercase" as const, - opacity: 0.5, + color: "#858585", + borderBottom: "1px solid #eaeaea", }; const CommandBar = ({ @@ -86,7 +95,11 @@ const CommandBar = ({ return ( @@ -105,7 +118,7 @@ function RenderResults() { items={results} onRender={({ item, active }) => typeof item === "string" ? ( - {item} + {item} ) : ( - {action.icon && action.icon} - - + + {action.icon && action.icon} + + + {ancestors.length > 0 && ancestors.map((ancestor) => ( @@ -184,11 +197,33 @@ const ResultItem = React.forwardRef( ))} {action.name} - + {action.subtitle && ( - {action.subtitle} + + {action.subtitle} + )} + + + {action.shortcut?.length ? (