Skip to content

An AI-powered search engine with a generative UI

Fix edit icon overlapping with user messages

Yoshiki Miuraef3eceb131f9
diff --git a/components/user-text-section.tsx b/components/user-text-section.tsx
index 93303996..4c87a122 100644
--- a/components/user-text-section.tsx
+++ b/components/user-text-section.tsx
@@ -72,11 +72,11 @@ export const UserTextSection: React.FC<UserTextSectionProps> = ({
</div>
</div>
) : (
- <div className="flex justify-between items-start">
- <div className="flex-1">{content}</div>
+ <div className="relative">
+ <div className="pr-10">{content}</div>
<div
className={cn(
- 'absolute top-1 right-1 transition-opacity ml-2',
+ 'absolute top-0 right-0 transition-opacity',
'opacity-0',
'group-focus-within:opacity-100',
'md:opacity-0',