Skip to content

Commit

Permalink
fix: Fix the ButtonWidget image display issue in Electron build (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
HashCookie authored Jun 27, 2024
1 parent 7d1181c commit 96d16cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/editor/ButtonPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ButtonWidget extends WidgetType {
button.className = `flex items-center rounded text-[#453d7d] px-1 border border-[#453d7d]
bg-[#efefef] hover:bg-[#453d7d] hover:text-white transition-colors duration-500
font-medium whitespace-nowrap overflow-hidden`;
button.innerHTML = '<img src="/openai.svg" alt="" class="w-4 h-4 mr-1" /> Ask AI';
button.innerHTML = '<img src="openai.svg" alt="" class="w-4 h-4 mr-1" /> Ask AI';
button.style.position = 'absolute';
button.style.right = '1px';
button.style.top = '1px';
Expand Down

0 comments on commit 96d16cf

Please sign in to comment.