Update examples and improve stability (#271)

This commit is contained in:
Jeremy 2024-03-19 01:35:03 +03:00 committed by GitHub
parent 25e4128e25
commit 70ed5c4f47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 118 additions and 101 deletions

View file

@ -72,9 +72,9 @@ export function PromptForm({
<Button
variant="outline"
size="icon"
className="absolute left-0 top-4 size-8 rounded-full bg-background p-0 sm:left-4"
className="absolute left-0 top-[14px] size-8 rounded-full bg-background p-0 sm:left-4"
onClick={() => {
router.push('/')
router.push('/new')
}}
>
<IconPlus />
@ -98,7 +98,7 @@ export function PromptForm({
value={input}
onChange={e => setInput(e.target.value)}
/>
<div className="absolute right-0 top-4 sm:right-4">
<div className="absolute right-0 top-[13px] sm:right-4">
<Tooltip>
<TooltipTrigger asChild>
<Button type="submit" size="icon" disabled={input === ''}>