mirror of https://github.com/kortix-ai/suna.git
fix: mobile responsive text overlap
This commit is contained in:
parent
9a0f51cae9
commit
d7f873a424
|
@ -249,15 +249,15 @@ export const ChatInput = forwardRef<ChatInputHandles, ChatInputProps>(
|
|||
}
|
||||
}}
|
||||
>
|
||||
<div className="w-full text-sm flex flex-col justify-between items-start rounded-lg">
|
||||
<CardContent className={`w-full p-1.5 pb-2 ${bgColor} rounded-2xl border`}>
|
||||
<AttachmentGroup
|
||||
files={uploadedFiles || []}
|
||||
sandboxId={sandboxId}
|
||||
onRemove={removeUploadedFile}
|
||||
layout="inline"
|
||||
maxHeight="216px"
|
||||
showPreviews={true}
|
||||
<div className="w-full text-sm flex flex-col justify-between items-start rounded-lg">
|
||||
<CardContent className={`w-full p-1.5 pb-2 ${bgColor} rounded-2xl border`}>
|
||||
<AttachmentGroup
|
||||
files={uploadedFiles || []}
|
||||
sandboxId={sandboxId}
|
||||
onRemove={removeUploadedFile}
|
||||
layout="inline"
|
||||
maxHeight="216px"
|
||||
showPreviews={true}
|
||||
/>
|
||||
<MessageInput
|
||||
ref={textareaRef}
|
||||
|
|
|
@ -112,8 +112,9 @@ export const MessageInput = forwardRef<HTMLTextAreaElement, MessageInputProps>(
|
|||
};
|
||||
|
||||
return (
|
||||
<div className="flex flex-col w-full h-auto gap-4 justify-between">
|
||||
<div className="flex gap-2 items-center px-2">
|
||||
<div className="relative flex flex-col w-full h-auto gap-4 justify-between">
|
||||
|
||||
<div className="flex flex-col gap-2 items-center px-2">
|
||||
<Textarea
|
||||
ref={ref}
|
||||
value={value}
|
||||
|
@ -129,6 +130,7 @@ export const MessageInput = forwardRef<HTMLTextAreaElement, MessageInputProps>(
|
|||
/>
|
||||
</div>
|
||||
|
||||
|
||||
<div className="flex items-center justify-between mt-1 ml-3 mb-1 pr-2">
|
||||
<div className="flex items-center gap-3">
|
||||
{!hideAttachments && (
|
||||
|
@ -155,11 +157,7 @@ export const MessageInput = forwardRef<HTMLTextAreaElement, MessageInputProps>(
|
|||
<Tooltip>
|
||||
<TooltipTrigger>
|
||||
<p className='text-sm text-amber-500 hidden sm:block'>Upgrade for full performance</p>
|
||||
<div className='sm:hidden absolute bottom-0 left-0 right-0 flex justify-center'>
|
||||
<p className='text-xs text-amber-500 px-2 py-1'>
|
||||
Upgrade for better performance
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</TooltipTrigger>
|
||||
<TooltipContent>
|
||||
<p>The free tier is severely limited by inferior models; upgrade to experience the true full Suna experience.</p>
|
||||
|
@ -205,6 +203,13 @@ export const MessageInput = forwardRef<HTMLTextAreaElement, MessageInputProps>(
|
|||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
{subscriptionStatus === 'no_subscription' && !isLocalMode() &&
|
||||
<div className='sm:hidden absolute -bottom-8 left-0 right-0 flex justify-center'>
|
||||
<p className='text-xs text-amber-500 px-2 py-1'>
|
||||
Upgrade for better performance
|
||||
</p>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue