update export and report bug button

This commit is contained in:
Stijnus
2025-08-31 16:02:23 +02:00
parent 7072600b50
commit 4e214dcf98
2 changed files with 13 additions and 11 deletions

View File

@@ -6,7 +6,7 @@ export const ExportChatButton = ({ exportChat }: { exportChat?: () => void }) =>
return ( return (
<div className="flex border border-bolt-elements-borderColor rounded-md overflow-hidden mr-2 text-sm"> <div className="flex border border-bolt-elements-borderColor rounded-md overflow-hidden mr-2 text-sm">
<DropdownMenu.Root> <DropdownMenu.Root>
<DropdownMenu.Trigger className="rounded-md items-center justify-center [&:is(:disabled,.disabled)]:cursor-not-allowed [&:is(:disabled,.disabled)]:opacity-60 px-3 py-1.5 text-xs bg-bolt-elements-background-depth-2 text-bolt-elements-textPrimary [&:not(:disabled,.disabled)]:hover:bg-bolt-elements-button-primary-backgroundHover outline-accent-500 flex gap-1.7"> <DropdownMenu.Trigger className="rounded-md items-center justify-center [&:is(:disabled,.disabled)]:cursor-not-allowed [&:is(:disabled,.disabled)]:opacity-60 px-3 py-1.5 text-xs bg-accent-500 text-white hover:text-bolt-elements-item-contentAccent [&:not(:disabled,.disabled)]:hover:bg-bolt-elements-button-primary-backgroundHover outline-accent-500 flex gap-1.7">
Export Export
<span className={classNames('i-ph:caret-down transition-transform')} /> <span className={classNames('i-ph:caret-down transition-transform')} />
</DropdownMenu.Trigger> </DropdownMenu.Trigger>

View File

@@ -88,16 +88,18 @@ export function HeaderActionButtons({ chatStarted }: HeaderActionButtonsProps) {
{/* Bug Report Button */} {/* Bug Report Button */}
{shouldShowButtons && ( {shouldShowButtons && (
<button <div className="flex border border-bolt-elements-borderColor rounded-md overflow-hidden text-sm">
onClick={() => <button
window.open('https://github.com/stackblitz-labs/bolt.diy/issues/new?template=bug_report.yml', '_blank') onClick={() =>
} window.open('https://github.com/stackblitz-labs/bolt.diy/issues/new?template=bug_report.yml', '_blank')
className="text-sm flex items-center gap-1.5 text-bolt-elements-item-contentDefault bg-transparent hover:text-bolt-elements-item-contentActive rounded-md px-2 py-1 hover:bg-bolt-elements-item-backgroundActive transition-colors" }
title="Report Bug" className="rounded-md items-center justify-center [&:is(:disabled,.disabled)]:cursor-not-allowed [&:is(:disabled,.disabled)]:opacity-60 px-3 py-1.5 text-xs bg-accent-500 text-white hover:text-bolt-elements-item-contentAccent [&:not(:disabled,.disabled)]:hover:bg-bolt-elements-button-primary-backgroundHover outline-accent-500 flex gap-1.5"
> title="Report Bug"
<div className="i-ph:bug" /> >
<span>Report Bug</span> <div className="i-ph:bug" />
</button> <span>Report Bug</span>
</button>
</div>
)} )}
</div> </div>
); );