git stash

This commit is contained in:
Gerard Burns 2023-11-23 13:44:01 +00:00
parent 8b8604267d
commit 5824425020
1 changed files with 31 additions and 13 deletions

View File

@ -3,28 +3,42 @@
import AppPreview from "./AppPreview.svelte" import AppPreview from "./AppPreview.svelte"
import { store, screenHistoryStore } from "builderStore" import { store, screenHistoryStore } from "builderStore"
import UndoRedoControl from "components/common/UndoRedoControl.svelte" import UndoRedoControl from "components/common/UndoRedoControl.svelte"
import { getHorizontalResizeActions } from './resizable';
const [resizable, resizableHandle] = getHorizontalResizeActions();
</script> </script>
<div class="app-panel"> <div class="app-panel">
<div class="header">
<div class="header-left">
<UndoRedoControl store={screenHistoryStore} />
</div>
<div class="header-right">
{#if $store.clientFeatures.devicePreview}
<DevicePreviewSelect />
{/if}
</div>
</div>
<div class="content"> <div class="content">
{#key $store.version} <div class="header">
<AppPreview /> <div class="header-left">
{/key} <UndoRedoControl store={screenHistoryStore} />
</div>
<div class="header-right">
{#if $store.clientFeatures.devicePreview}
<DevicePreviewSelect />
{/if}
</div>
</div>
<div class="content">
{#key $store.version}
<AppPreview />
{/key}
</div>
</div> </div>
<div
role="separator"
class="divider"
use:resizableHandle
/>
</div> </div>
<style> <style>
.app-panel { .app-panel {
display: flex;
}
.content {
flex: 1 1 auto; flex: 1 1 auto;
overflow-y: auto; overflow-y: auto;
display: flex; display: flex;
@ -52,4 +66,8 @@
.content { .content {
flex: 1 1 auto; flex: 1 1 auto;
} }
.divider {
g
}
</style> </style>