[fix] ungood gui
This commit is contained in:
@@ -604,7 +604,7 @@
|
|||||||
{#each currentChar.data.alternateGreetings as bias, i}
|
{#each currentChar.data.alternateGreetings as bias, i}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="font-medium truncate">
|
<td class="font-medium truncate">
|
||||||
<TextAreaInput bind:value={currentChar.data.alternateGreetings[i]} placeholder="..." />
|
<TextAreaInput bind:value={currentChar.data.alternateGreetings[i]} placeholder="..." fullwidth />
|
||||||
</td>
|
</td>
|
||||||
<th class="font-medium cursor-pointer w-10">
|
<th class="font-medium cursor-pointer w-10">
|
||||||
<button class="hover:text-green-500" on:click={() => {
|
<button class="hover:text-green-500" on:click={() => {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
import type { character, groupChat } from "src/ts/storage/database";
|
import type { character, groupChat } from "src/ts/storage/database";
|
||||||
import { DataBase } from "src/ts/storage/database";
|
import { DataBase } from "src/ts/storage/database";
|
||||||
import TextInput from "../UI/GUI/TextInput.svelte";
|
import TextInput from "../UI/GUI/TextInput.svelte";
|
||||||
import { DownloadIcon, TrashIcon } from "lucide-svelte";
|
import { DownloadIcon, EditIcon, TrashIcon } from "lucide-svelte";
|
||||||
import { exportChat } from "src/ts/characters";
|
import { exportChat } from "src/ts/characters";
|
||||||
import { alertConfirm, alertError } from "src/ts/alert";
|
import { alertConfirm, alertError } from "src/ts/alert";
|
||||||
import { language } from "src/lang";
|
import { language } from "src/lang";
|
||||||
@@ -47,7 +47,12 @@
|
|||||||
<span>{chat.name}</span>
|
<span>{chat.name}</span>
|
||||||
{/if}
|
{/if}
|
||||||
<div class="flex-grow flex justify-end">
|
<div class="flex-grow flex justify-end">
|
||||||
<button class="text-gray-500 hover:text-green-500 mr-2 cursor-pointer" on:click={async (e) => {
|
<button class="text-gray-500 hover:text-green-500 mr-1 cursor-pointer" on:click={() => {
|
||||||
|
editMode = !editMode
|
||||||
|
}}>
|
||||||
|
<EditIcon size={18}/>
|
||||||
|
</button>
|
||||||
|
<button class="text-gray-500 hover:text-green-500 mr-1 cursor-pointer" on:click={async (e) => {
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
exportChat(i)
|
exportChat(i)
|
||||||
}}>
|
}}>
|
||||||
|
|||||||
@@ -660,7 +660,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if $DynamicGUI}
|
{#if $DynamicGUI}
|
||||||
<div class="flex-grow h-full min-w-12" on:click={() => {
|
<div class="flex-grow h-full min-w-6" on:click={() => {
|
||||||
if($sideBarClosing){
|
if($sideBarClosing){
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user