Polish: link buttons, theme-aware dark variant, assistant drawer overlay, sticky draft bar
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
parent
aed14cd04f
commit
c549c34f60
13 changed files with 60 additions and 66 deletions
|
|
@ -49,11 +49,9 @@ function DraftCard({ item, onNavigate }: { item: Extract<UiItem, { type: 'draft'
|
|||
</div>
|
||||
</div>
|
||||
{!gone && (
|
||||
<Link to={`/drafts/${item.draftId}`} onClick={onNavigate}>
|
||||
<Button size="sm" variant={saved ? 'secondary' : 'primary'}>
|
||||
<Button to={`/drafts/${item.draftId}`} onClick={onNavigate} size="sm" variant={saved ? 'secondary' : 'primary'}>
|
||||
{saved ? 'Open' : 'Review'}
|
||||
</Button>
|
||||
</Link>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
|
|
@ -399,11 +397,9 @@ export default function AssistantPanel({
|
|||
<Callout tone="accent" icon={<Sparkles />} title="Connect an AI model to use the assistant">
|
||||
Add a provider such as OpenAI, Anthropic, Google Gemini or a local model, then switch on a model.
|
||||
<div className="mt-3">
|
||||
<Link to="/settings/ai" onClick={() => variant === 'drawer' && assistant.close()}>
|
||||
<Button size="sm" variant="primary">
|
||||
<Button to="/settings/ai" onClick={() => variant === 'drawer' && assistant.close()} size="sm" variant="primary">
|
||||
Open AI settings
|
||||
</Button>
|
||||
</Link>
|
||||
</div>
|
||||
</Callout>
|
||||
</div>
|
||||
|
|
@ -428,7 +424,7 @@ export default function AssistantPanel({
|
|||
<div className="max-w-[88%] rounded-[16px] rounded-br-md bg-ink px-3.5 py-2.5 text-[15px] whitespace-pre-wrap text-paper">{m.text}</div>
|
||||
</div>
|
||||
) : (
|
||||
<AssistantMessage key={m.id} message={m} onNavigate={() => variant === 'drawer' && undefined} onAction={updateAction} />
|
||||
<AssistantMessage key={m.id} message={m} onNavigate={() => variant === 'drawer' && window.innerWidth < 1360 && assistant.close()} onAction={updateAction} />
|
||||
),
|
||||
)}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue