feat: 更新数据集页面,添加窗口标题设置并优化布局

This commit is contained in:
Vixalie
2026-03-27 22:01:19 +08:00
parent 26870d5c97
commit cc84748451

View File

@@ -1,19 +1,20 @@
<script lang="ts">
import { afterNavigate } from '$app/navigation';
import { activeDatasetMeta } from '$lib/stores/dataset';
import { currentActivate } from '$lib/stores/navigate';
import { invoke } from '@tauri-apps/api/core';
import { get } from 'svelte/store';
afterNavigate(() => {
currentActivate.set('dataset');
invoke('set_window_title', { title: get(activeDatasetMeta)?.name });
});
</script>
<main class="px-2 size-full flex flex-col items-stretch gap-1 overflow-hidden">
<div class="grow flex flex-row items-stretch gap-2 px-2 pb-3">
<fieldset class="fieldset rounded-box border grow p-4">
<legend class="fieldset-legend px-1">Dataset settings</legend>
</fieldset>
<fieldset class="fieldset rounded-box border grow p-4">
<legend class="fieldset-legend px-1">Environment check</legend>
</fieldset>
</div>
<main class="px-4 py-4 size-full flex flex-col items-stretch gap-1 overflow-hidden">
<h2>Dataset Settings</h2>
<hr class="border-zinc-500" />
<h2>Environment Check</h2>
<hr class="border-zinc-500" />
</main>