Add show folder name option
This commit is contained in:
@@ -1064,4 +1064,5 @@ export const languageEnglish = {
|
|||||||
localActivationInGlobalLorebook: "Local Activation in Global Lorebook",
|
localActivationInGlobalLorebook: "Local Activation in Global Lorebook",
|
||||||
cachePoint: "Cache Point",
|
cachePoint: "Cache Point",
|
||||||
all: "All",
|
all: "All",
|
||||||
|
showFolderNameInIcon: "Show Folder Name in Icon",
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -246,6 +246,10 @@
|
|||||||
<Check bind:check={DBState.db.hideRealm} name={language.hideRealm}/>
|
<Check bind:check={DBState.db.hideRealm} name={language.hideRealm}/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="flex items-center mt-2">
|
||||||
|
<Check bind:check={DBState.db.showFolderName} name={language.showFolderNameInIcon}/>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="flex items-center mt-2">
|
<div class="flex items-center mt-2">
|
||||||
<Check check={DBState.db.customBackground !== ''} onChange={async (check) => {
|
<Check check={DBState.db.customBackground !== ''} onChange={async (check) => {
|
||||||
if(check){
|
if(check){
|
||||||
|
|||||||
@@ -549,7 +549,11 @@
|
|||||||
}
|
}
|
||||||
openFolders = openFolders
|
openFolders = openFolders
|
||||||
}}>
|
}}>
|
||||||
{#if openFolders.includes(char.id)}
|
{#if DBState.db.showFolderName}
|
||||||
|
<div class="h-full w-full flex justify-center items-center">
|
||||||
|
<span class="hyphens-auto truncate font-bold">{char.name}</span>
|
||||||
|
</div>
|
||||||
|
{:else if openFolders.includes(char.id)}
|
||||||
<FolderOpenIcon />
|
<FolderOpenIcon />
|
||||||
{:else}
|
{:else}
|
||||||
<FolderIcon />
|
<FolderIcon />
|
||||||
|
|||||||
@@ -5,9 +5,9 @@
|
|||||||
import CheckInput from "../UI/GUI/CheckInput.svelte";
|
import CheckInput from "../UI/GUI/CheckInput.svelte";
|
||||||
import { language } from "src/lang";
|
import { language } from "src/lang";
|
||||||
import type { character, groupChat } from "src/ts/storage/database.svelte";
|
import type { character, groupChat } from "src/ts/storage/database.svelte";
|
||||||
import SelectInput from "../UI/GUI/SelectInput.svelte";
|
import SelectInput from "../UI/GUI/SelectInput.svelte";
|
||||||
import OptionInput from "../UI/GUI/OptionInput.svelte";
|
import OptionInput from "../UI/GUI/OptionInput.svelte";
|
||||||
import TextInput from "../UI/GUI/TextInput.svelte";
|
import TextInput from "../UI/GUI/TextInput.svelte";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
chara?: character|groupChat
|
chara?: character|groupChat
|
||||||
|
|||||||
@@ -924,6 +924,7 @@ export interface Database{
|
|||||||
model: string,
|
model: string,
|
||||||
},
|
},
|
||||||
localActivationInGlobalLorebook: boolean
|
localActivationInGlobalLorebook: boolean
|
||||||
|
showFolderName: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
interface SeparateParameters{
|
interface SeparateParameters{
|
||||||
|
|||||||
Reference in New Issue
Block a user