Fix svelte 4 components to fit into requirements

This commit is contained in:
kwaroran
2024-10-22 22:06:20 +09:00
parent 00b4195ca0
commit 8e1d014f6e
9 changed files with 41 additions and 27 deletions

View File

@@ -24,7 +24,7 @@
export let img:string|Promise<string> = ''
export let idx = -1
export let rerollIcon = false
export let MessageGenerationInfo:MessageGenerationInfo|null = null
export let messageGenerationInfo:MessageGenerationInfo|null = null
export let onReroll = () => {}
export let unReroll = () => {}
export let character:simpleCharacterArgument|string|null = null
@@ -264,20 +264,20 @@
{/if}
</div>
</div>
{#if MessageGenerationInfo && $DataBase.requestInfoInsideChat}
{#if messageGenerationInfo && $DataBase.requestInfoInsideChat}
<div>
<button class="text-sm p-1 text-textcolor2 border-darkborderc float-end mr-2 my-2
hover:ring-darkbutton hover:ring rounded-md hover:text-textcolor transition-all flex justify-center items-center"
on:click={() => {
alertRequestData({
genInfo: MessageGenerationInfo,
genInfo: messageGenerationInfo,
idx: idx,
})
}}
>
<BotIcon size={20} />
<span class="ml-1">
{capitalize(getModelShortName(MessageGenerationInfo.model))}
{capitalize(getModelShortName(messageGenerationInfo.model))}
</span>
</button>
</div>