diff --git a/frontend/packages/core/src/quick-links.tsx b/frontend/packages/core/src/quick-links.tsx index e053e058ca..e15d8912d0 100644 --- a/frontend/packages/core/src/quick-links.tsx +++ b/frontend/packages/core/src/quick-links.tsx @@ -8,8 +8,30 @@ import { Tooltip, TooltipContainer } from "./Feedback"; import Grid from "./grid"; import { Link } from "./link"; import { Popper, PopperItem } from "./popper"; +import styled from "./styled"; import { Typography } from "./typography"; +const StyledGrid = styled(Grid)({ + padding: "10px", + margin: "-4px", +}); + +const StyledQLGrid = styled(Grid)({ + padding: "8px", +}); + +const StyledButton = styled("button")({ + padding: 0, + background: "transparent", + border: "0", + cursor: "pointer", + display: "flex", +}); + +const StyledSpan = styled("span")({ + whiteSpace: "nowrap", +}); + interface LinkGroupProps { linkGroupName: string; linkGroupImage: string; @@ -39,9 +61,9 @@ const QuickLinkContainer = ({ keyProp, name, children }: QuickLinkContainerProps ); return ( - + {name ? container : children} - + ); }; @@ -77,20 +99,9 @@ const QuickLinkGroup = ({ linkGroupName, linkGroupImage, links }: QuickLinkGroup return ( - + {link?.url && ( - + {link.name} - + )} @@ -166,14 +177,13 @@ const QuickLinksCard = ({ linkGroups }: QuickLinksProps) => { return ( - @@ -193,13 +203,13 @@ const QuickLinksCard = ({ linkGroups }: QuickLinksProps) => { onClickAway={() => setOpen(false)} placement="bottom-end" > - + - + )} - + ); };