Spaces:
Running
Running
feat: add link to settings
Browse files
src/lib/components/chat/UploadedFile.svelte
CHANGED
@@ -9,6 +9,7 @@
|
|
9 |
import Modal from "../Modal.svelte";
|
10 |
import AudioPlayer from "../players/AudioPlayer.svelte";
|
11 |
import EosIconsLoading from "~icons/eos-icons/loading";
|
|
|
12 |
|
13 |
export let file: MessageFile;
|
14 |
export let canClose = true;
|
@@ -69,7 +70,14 @@
|
|
69 |
{/if}
|
70 |
{:else if isPlainText(file.mime)}
|
71 |
<div class="relative flex h-full w-full flex-col gap-4 p-4">
|
72 |
-
<h3 class="-mb-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
<button
|
74 |
class="absolute right-4 top-4 text-xl text-gray-500 hover:text-gray-800"
|
75 |
on:click={() => (showModal = false)}
|
|
|
9 |
import Modal from "../Modal.svelte";
|
10 |
import AudioPlayer from "../players/AudioPlayer.svelte";
|
11 |
import EosIconsLoading from "~icons/eos-icons/loading";
|
12 |
+
import { base } from "$app/paths";
|
13 |
|
14 |
export let file: MessageFile;
|
15 |
export let canClose = true;
|
|
|
70 |
{/if}
|
71 |
{:else if isPlainText(file.mime)}
|
72 |
<div class="relative flex h-full w-full flex-col gap-4 p-4">
|
73 |
+
<h3 class="-mb-4 pt-2 text-xl font-bold">{file.name}</h3>
|
74 |
+
{#if file.mime === "application/vnd.chatui.clipboard"}
|
75 |
+
<p class="text-sm text-gray-500">
|
76 |
+
If you prefer to inject clipboard content directly in the chat, you can disable this
|
77 |
+
feature in the
|
78 |
+
<a href={`${base}/settings`} class="underline">settings page</a>.
|
79 |
+
</p>
|
80 |
+
{/if}
|
81 |
<button
|
82 |
class="absolute right-4 top-4 text-xl text-gray-500 hover:text-gray-800"
|
83 |
on:click={() => (showModal = false)}
|