feat: 更新数据集页面,添加窗口标题设置并优化布局
This commit is contained in:
@@ -1,19 +1,20 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { afterNavigate } from '$app/navigation';
|
import { afterNavigate } from '$app/navigation';
|
||||||
|
import { activeDatasetMeta } from '$lib/stores/dataset';
|
||||||
import { currentActivate } from '$lib/stores/navigate';
|
import { currentActivate } from '$lib/stores/navigate';
|
||||||
|
import { invoke } from '@tauri-apps/api/core';
|
||||||
|
import { get } from 'svelte/store';
|
||||||
|
|
||||||
afterNavigate(() => {
|
afterNavigate(() => {
|
||||||
currentActivate.set('dataset');
|
currentActivate.set('dataset');
|
||||||
|
|
||||||
|
invoke('set_window_title', { title: get(activeDatasetMeta)?.name });
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<main class="px-2 size-full flex flex-col items-stretch gap-1 overflow-hidden">
|
<main class="px-4 py-4 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">
|
<h2>Dataset Settings</h2>
|
||||||
<fieldset class="fieldset rounded-box border grow p-4">
|
<hr class="border-zinc-500" />
|
||||||
<legend class="fieldset-legend px-1">Dataset settings</legend>
|
<h2>Environment Check</h2>
|
||||||
</fieldset>
|
<hr class="border-zinc-500" />
|
||||||
<fieldset class="fieldset rounded-box border grow p-4">
|
|
||||||
<legend class="fieldset-legend px-1">Environment check</legend>
|
|
||||||
</fieldset>
|
|
||||||
</div>
|
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
Reference in New Issue
Block a user