[fix] bugs

This commit is contained in:
kwaroran
2023-11-27 22:31:13 +09:00
parent e98a8ebf67
commit 4bbe029c1f
2 changed files with 9 additions and 1 deletions

View File

@@ -36,7 +36,7 @@
<BackgroundDom />
<div style={bgImg} class="h-full w-full" class:max-w-6xl={$DataBase.classicMaxWidth}>
{#if $selectedCharID >= 0}
{#if $CurrentCharacter.viewScreen !== 'none'}
{#if $CurrentCharacter.viewScreen !== 'none' && ($CurrentCharacter.type === 'group' || (!$CurrentCharacter.inlayViewScreen))}
<ResizeBox />
{/if}
{/if}

View File

@@ -116,6 +116,14 @@ export async function generateAIImage(genPrompt:string, currentChar:character, n
let reqlist= {}
if(db.NAII2I){
genPrompt = genPrompt
.replaceAll('\\(', "♧")
.replaceAll('\\)', "♤")
.replaceAll('(','{')
.replaceAll(')','}')
.replaceAll('♧','(')
.replaceAll('♤',')')
let base64img = ''
if(db.NAIImgConfig.image === ''){
const charimg = currentChar.image;