mirror of
https://github.com/morgan9e/chatgpt-web
synced 2026-04-14 00:14:04 +09:00
Fixed few
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
import SvelteMarkdown from 'svelte-markdown'
|
||||
import type { Message, Model, Chat } from './Types.svelte'
|
||||
import Fa from 'svelte-fa/src/fa.svelte'
|
||||
import { faTrash, faDiagramPredecessor, faDiagramNext, faCircleCheck, faPaperPlane, faEye, faEyeSlash, faEllipsis, faDownload, faClipboard, faSquareRootVariable } from '@fortawesome/free-solid-svg-icons/index'
|
||||
import { faTrash, faDiagramPredecessor, faDiagramNext, faCircleCheck, faPaperPlane, faEye, faEyeSlash, faEllipsis, faDownload, faClipboard, faPenToSquare, faSquareRootVariable } from '@fortawesome/free-solid-svg-icons/index'
|
||||
import { errorNotice, scrollToMessage } from './Util.svelte'
|
||||
import { openModal } from 'svelte-modals'
|
||||
import PromptConfirm from './PromptConfirm.svelte'
|
||||
@@ -348,8 +348,8 @@ const replaceLatexDelimiters = (text: string): string => {
|
||||
{:else}
|
||||
<div
|
||||
class="message-display"
|
||||
on:touchend={editOnDoubleTap}
|
||||
on:dblclick|preventDefault={() => edit()}
|
||||
on:touchend={editOnDoubleTap}
|
||||
on:dblclick|preventDefault={() => {if(isUser){edit()}}}
|
||||
>
|
||||
{#if message.summary && !message.summary.length}
|
||||
<p><b>Summarizing...</b></p>
|
||||
@@ -423,6 +423,18 @@ const replaceLatexDelimiters = (text: string): string => {
|
||||
<span class="icon"><Fa icon={faDiagramPredecessor} /></span>
|
||||
</a>
|
||||
{/if}
|
||||
{#if !isImage}
|
||||
<a
|
||||
href={'#'}
|
||||
title="Edit"
|
||||
class="msg-image button is-small"
|
||||
on:click|preventDefault={() => {
|
||||
edit()
|
||||
}}
|
||||
>
|
||||
<span class="icon"><Fa icon={faPenToSquare} /></span>
|
||||
</a>
|
||||
{/if}
|
||||
{#if !message.summarized}
|
||||
<a
|
||||
href={'#'}
|
||||
|
||||
Reference in New Issue
Block a user