From e51a0c7c33c085ab191e95dc8f75bf0bcae37a7b Mon Sep 17 00:00:00 2001 From: Josh Slaughter Date: Thu, 19 Oct 2023 12:07:38 -0700 Subject: [PATCH] frontend: Adjusting Styling for Quick Links --- frontend/packages/core/src/quick-links.tsx | 54 +++++++++++++--------- 1 file changed, 32 insertions(+), 22 deletions(-) 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" > - + - + )} - + ); };