[fix] ungood gui

This commit is contained in:
kwaroran
2023-07-26 04:33:20 +09:00
parent a9a7f4e8e9
commit 8e62d91396
3 changed files with 9 additions and 4 deletions

View File

@@ -604,7 +604,7 @@
{#each currentChar.data.alternateGreetings as bias, i}
<tr>
<td class="font-medium truncate">
<TextAreaInput bind:value={currentChar.data.alternateGreetings[i]} placeholder="..." />
<TextAreaInput bind:value={currentChar.data.alternateGreetings[i]} placeholder="..." fullwidth />
</td>
<th class="font-medium cursor-pointer w-10">
<button class="hover:text-green-500" on:click={() => {

View File

@@ -2,7 +2,7 @@
import type { character, groupChat } from "src/ts/storage/database";
import { DataBase } from "src/ts/storage/database";
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 { alertConfirm, alertError } from "src/ts/alert";
import { language } from "src/lang";
@@ -47,7 +47,12 @@
<span>{chat.name}</span>
{/if}
<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()
exportChat(i)
}}>

View File

@@ -660,7 +660,7 @@
{/if}
{#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){
return
}