Skip to content

Commit

Permalink
Fix issues with ghost buttons not showing after the antd update.
Browse files Browse the repository at this point in the history
  • Loading branch information
markrickert committed Feb 8, 2024
1 parent a44a5aa commit 6a52fc6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/components/common/CopyFileButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ const CopyFileButton = styled(
<Popover content={popoverContent} trigger="hover">
<Button
{...props}
ghost
icon={<CopyOutlined />}
onBlur={() => {
setPopoverContent(popoverContentOpts.default)
Expand Down
6 changes: 2 additions & 4 deletions src/components/common/Diff/DiffHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ interface CompleteDiffButtonProps extends ButtonProps {
const CompleteDiffButton = styled(
({ open, onClick, ...props }: CompleteDiffButtonProps) =>
open ? (
<Button {...props} ghost icon={<RollbackOutlined />} onClick={onClick} />
<Button {...props} icon={<RollbackOutlined />} onClick={onClick} />
) : (
<Button {...props} ghost icon={<CheckOutlined />} onClick={onClick} />
<Button {...props} icon={<CheckOutlined />} onClick={onClick} />
)
)`
${defaultIconButtonStyle}
Expand Down Expand Up @@ -177,7 +177,6 @@ const CopyPathToClipboardButton = styled(
>
<Button
{...props}
ghost
icon={<CopyOutlined />}
onMouseOver={resetCopyPathPopoverContent}
/>
Expand Down Expand Up @@ -233,7 +232,6 @@ const CopyAnchorLinksToClipboardButton = styled(
>
<Button
{...props}
ghost
icon={<LinkOutlined />}
onMouseOver={resetContent}
/>
Expand Down
1 change: 0 additions & 1 deletion src/components/common/DownloadFileButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const DownloadFileButton = ({
return open ? (
<Button
{...props}
ghost
shape="circle"
icon={<DownloadOutlined />}
target="_blank"
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/ViewFileButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const ViewFileButton = styled(
)
}
)`
font-size: 12px;
font-size: 13px;
`

export default ViewFileButton

0 comments on commit 6a52fc6

Please sign in to comment.