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
|
|
@ -319,11 +319,9 @@ function SharedDocument({ doc, token }: { doc: PublicDocument; token: string })
|
|||
{doc.filename} · {formatBytes(doc.size)}
|
||||
{doc.pageCount ? ` · ${plural(doc.pageCount, 'page')}` : ''}
|
||||
</p>
|
||||
<a href={url} download={inline ? undefined : doc.filename} target={inline ? '_blank' : undefined} rel="noreferrer" className="mt-5 inline-block">
|
||||
<Button variant="primary" size="lg" icon={<Download />}>
|
||||
{inline ? 'Open file' : 'Download'}
|
||||
</Button>
|
||||
</a>
|
||||
<Button href={url} download={inline ? undefined : doc.filename} target={inline ? '_blank' : undefined} variant="primary" size="lg" icon={<Download />} className="mt-5">
|
||||
{inline ? 'Open file' : 'Download'}
|
||||
</Button>
|
||||
{doc.docKind === 'image' && <img src={url} alt={doc.title} className="card mt-6 max-w-full p-2" />}
|
||||
{doc.docKind === 'pdf' && <iframe src={url} title={doc.title} className="card mt-6 hidden h-[78vh] w-full sm:block" />}
|
||||
</Frame>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue