mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-21 18:55:16 +02:00
refactor: add public URL handling for SurfSense documents across various components and schemas
This commit is contained in:
parent
ea087d1d23
commit
01d7379914
8 changed files with 35 additions and 8 deletions
|
|
@ -130,9 +130,9 @@ const SurfsenseDocPreview: FC<{ chunkId: number }> = ({ chunkId }) => {
|
|||
</p>
|
||||
<p className="text-[11px] text-muted-foreground">Chunk #{chunkId}</p>
|
||||
</div>
|
||||
{data?.source && (
|
||||
{data?.public_url && (
|
||||
<a
|
||||
href={data.source}
|
||||
href={data.public_url}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="inline-flex shrink-0 items-center gap-1 rounded-md px-2 py-1 text-[11px] font-medium text-primary hover:bg-primary/10"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue