Skip to content

Commit 0d38883

Browse files
committed
Remove tooltip from SVG download button
The reason I removed it is that, on an iPhone, when someone would "Share" the SVG file, the tooltip wouldn't go away like it normally does.
1 parent dab62e7 commit 0d38883

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

src/components/Diagram.tsx

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -102,18 +102,10 @@ const Diagram = ({
102102
</div>
103103
<div className={"mt-3 d-flex justify-content-between"}>
104104
<Dropdown as={ButtonGroup} drop={"down"} align={"end"}>
105-
<OverlayTrigger
106-
delay={{ show: 1000, hide: 500 }}
107-
overlay={<Tooltip>Download the diagram in SVG format</Tooltip>}
108-
>
109-
<Button
110-
onClick={onClickDownloadSvg}
111-
disabled={!isMermaidCodeUsable}
112-
>
113-
<i className="bi bi-arrow-down-circle me-2"></i>
114-
<span>Download SVG</span>
115-
</Button>
116-
</OverlayTrigger>
105+
<Button onClick={onClickDownloadSvg} disabled={!isMermaidCodeUsable}>
106+
<i className="bi bi-arrow-down-circle me-2"></i>
107+
<span>Download SVG</span>
108+
</Button>
117109
<Dropdown.Toggle
118110
title={"Show menu"}
119111
disabled={!isMermaidCodeUsable}

0 commit comments

Comments
 (0)