feat(settings): add project max aspect ratio setting with CSS constraint
This commit is contained in:
parent
c6fda19170
commit
92b513dd9d
3 changed files with 49 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
<script lang="ts">
|
||||
import { onMount } from 'svelte';
|
||||
import { initTheme } from './lib/stores/theme.svelte';
|
||||
import { getSetting } from './lib/adapters/settings-bridge';
|
||||
import { isDetachedMode, getDetachedConfig } from './lib/utils/detach';
|
||||
import { startAgentDispatcher, stopAgentDispatcher } from './lib/agent-dispatcher';
|
||||
import { loadWorkspace, getActiveTab, setActiveTab, setActiveProject, getEnabledProjects } from './lib/stores/workspace.svelte';
|
||||
|
|
@ -60,6 +61,9 @@
|
|||
|
||||
onMount(() => {
|
||||
initTheme();
|
||||
getSetting('project_max_aspect').then(v => {
|
||||
if (v) document.documentElement.style.setProperty('--project-max-aspect', v);
|
||||
});
|
||||
startAgentDispatcher();
|
||||
|
||||
if (!detached) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue