fix: minor changes in HypaV3 modal
This commit is contained in:
@@ -24,10 +24,7 @@
|
|||||||
SettingsMenuIndex,
|
SettingsMenuIndex,
|
||||||
} from "../../ts/stores.svelte";
|
} from "../../ts/stores.svelte";
|
||||||
import { type OpenAIChat } from "../../ts/process/index.svelte";
|
import { type OpenAIChat } from "../../ts/process/index.svelte";
|
||||||
import {
|
import { processScriptFull, risuChatParser } from "../../ts/process/scripts";
|
||||||
processScriptFull,
|
|
||||||
risuChatParser,
|
|
||||||
} from "../../ts/process/scripts";
|
|
||||||
import { summarize } from "../../ts/process/memory/hypav3";
|
import { summarize } from "../../ts/process/memory/hypav3";
|
||||||
import { type Message } from "../../ts/storage/database.svelte";
|
import { type Message } from "../../ts/storage/database.svelte";
|
||||||
import { translateHTML } from "../../ts/translator/translator";
|
import { translateHTML } from "../../ts/translator/translator";
|
||||||
@@ -536,13 +533,14 @@
|
|||||||
<!-- Modal backdrop -->
|
<!-- Modal backdrop -->
|
||||||
<div class="fixed inset-0 z-50 bg-black/50 p-4">
|
<div class="fixed inset-0 z-50 bg-black/50 p-4">
|
||||||
<!-- Modal wrapper -->
|
<!-- Modal wrapper -->
|
||||||
<div class="h-full w-full flex justify-center">
|
<div
|
||||||
|
class="w-full flex justify-center {hypaV3DataState.summaries.length === 0
|
||||||
|
? 'h-fit'
|
||||||
|
: 'h-full'}"
|
||||||
|
>
|
||||||
<!-- Modal window -->
|
<!-- Modal window -->
|
||||||
<div
|
<div
|
||||||
class="bg-zinc-900 p-6 rounded-lg flex flex-col w-full max-w-3xl {hypaV3DataState
|
class="bg-zinc-900 p-6 rounded-lg flex flex-col w-full max-w-3xl max-h-full"
|
||||||
.summaries.length === 0
|
|
||||||
? 'h-fit'
|
|
||||||
: 'max-h-full'}"
|
|
||||||
>
|
>
|
||||||
<!-- Header -->
|
<!-- Header -->
|
||||||
<div class="flex justify-between items-center w-full mb-4">
|
<div class="flex justify-between items-center w-full mb-4">
|
||||||
|
|||||||
Reference in New Issue
Block a user