Fix: Download Button trigger chat
This commit is contained in:
parent
c4cdb186b8
commit
7f616aec8b
1 changed files with 9 additions and 4 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
import ForwardedIconComponent from "../../../../../../../components/genericIconComponent";
|
import ForwardedIconComponent from "../../../../../../../components/genericIconComponent";
|
||||||
|
import { Button } from "../../../../../../../components/ui/button";
|
||||||
|
|
||||||
export default function DownloadButton({
|
export default function DownloadButton({
|
||||||
isHovered,
|
isHovered,
|
||||||
|
|
@ -10,14 +11,18 @@ export default function DownloadButton({
|
||||||
if (isHovered) {
|
if (isHovered) {
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={`absolute right-1 top-1 rounded-bl-lg bg-muted text-sm font-bold text-foreground `}
|
className={`absolute right-1 top-1 rounded-md bg-muted text-sm font-bold text-foreground `}
|
||||||
>
|
>
|
||||||
<button className="px-2 py-1 text-ring " onClick={handleDownload}>
|
<Button
|
||||||
|
variant={"none"}
|
||||||
|
className="bg-transparent px-2 py-1 text-ring"
|
||||||
|
onClick={handleDownload}
|
||||||
|
>
|
||||||
<ForwardedIconComponent
|
<ForwardedIconComponent
|
||||||
name="DownloadCloud"
|
name="DownloadCloud"
|
||||||
className="h-5 w-5 text-current hover:scale-110"
|
className="h-5 w-5 bg-transparent text-current hover:scale-110"
|
||||||
/>
|
/>
|
||||||
</button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue