mirror of
https://github.com/JOYCEQL/magic-resume.git
synced 2026-07-03 14:07:11 +02:00
fix: ai polish click event
This commit is contained in:
@@ -488,9 +488,14 @@ const RichTextEditor = ({
|
||||
</MenuButton>
|
||||
{onPolish && (
|
||||
<Button
|
||||
type="button"
|
||||
size="sm"
|
||||
variant="outline"
|
||||
onClick={onPolish}
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
onPolish();
|
||||
}}
|
||||
className="h-8 px-3 text-xs gap-1.5 ml-1 border-primary/20 hover:border-primary/40 text-primary hover:bg-primary/5 transition-all duration-300 group"
|
||||
>
|
||||
<Wand2 className="h-3 w-3 group-hover:rotate-12 transition-transform" />
|
||||
|
||||
Reference in New Issue
Block a user