"Master Layout" > "Page Layout" .. and moved above screens
This commit is contained in:
parent
5ab43eba99
commit
2021f4466a
|
@ -52,22 +52,20 @@
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<div
|
<div
|
||||||
class="budibase__nav-item"
|
class="budibase__nav-item root"
|
||||||
class:selected={$store.currentComponentInfo._id === _layout.component.props._id}
|
class:selected={$store.currentComponentInfo._id === _layout.component.props._id}
|
||||||
on:click|stopPropagation={() => store.setScreenType('page')}>
|
on:click|stopPropagation={() => store.setScreenType('page')}>
|
||||||
<span
|
<span
|
||||||
class="icon"
|
class="icon"
|
||||||
class:rotate={$store.currentPreviewItem.name !== _layout.title}>
|
class:rotate={$store.currentPreviewItem.name !== _layout.title}>
|
||||||
{#if _layout.component.props._children.length}
|
<ArrowDownIcon />
|
||||||
<ArrowDownIcon />
|
|
||||||
{/if}
|
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
<GridIcon />
|
<GridIcon />
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span class="title">Master Layout</span>
|
<span class="title">Page Layout</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{#if $store.currentPreviewItem.name === _layout.title && _layout.component.props._children}
|
{#if $store.currentPreviewItem.name === _layout.title && _layout.component.props._children}
|
||||||
|
@ -90,6 +88,9 @@
|
||||||
onOk={() => store.deleteComponent(componentToDelete)} />
|
onOk={() => store.deleteComponent(componentToDelete)} />
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
.root {
|
||||||
|
|
||||||
|
}
|
||||||
.title {
|
.title {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
|
@ -1,7 +1,7 @@
|
||||||
<script>
|
<script>
|
||||||
import ComponentsHierarchy from "./ComponentsHierarchy.svelte"
|
import ComponentsHierarchy from "./ComponentsHierarchy.svelte"
|
||||||
import ComponentsHierarchyChildren from "./ComponentsHierarchyChildren.svelte"
|
import ComponentsHierarchyChildren from "./ComponentsHierarchyChildren.svelte"
|
||||||
import MasterLayout from "./MasterLayout.svelte"
|
import PageLayout from "./PageLayout.svelte"
|
||||||
import PagesList from "./PagesList.svelte"
|
import PagesList from "./PagesList.svelte"
|
||||||
import { store } from "builderStore"
|
import { store } from "builderStore"
|
||||||
import IconButton from "components/common/IconButton.svelte"
|
import IconButton from "components/common/IconButton.svelte"
|
||||||
|
@ -55,6 +55,10 @@
|
||||||
|
|
||||||
<div class="border-line" />
|
<div class="border-line" />
|
||||||
|
|
||||||
|
<PageLayout layout={$store.pages[$store.currentPageName]} />
|
||||||
|
|
||||||
|
<div class="border-line" />
|
||||||
|
|
||||||
<div class="components-list-container">
|
<div class="components-list-container">
|
||||||
<div class="nav-group-header">
|
<div class="nav-group-header">
|
||||||
<span class="components-nav-header" style="margin-top: 0;">
|
<span class="components-nav-header" style="margin-top: 0;">
|
||||||
|
@ -67,7 +71,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="nav-items-container">
|
<div class="nav-items-container">
|
||||||
<MasterLayout layout={$store.pages[$store.currentPageName]} />
|
|
||||||
<ComponentsHierarchy screens={$store.screens} />
|
<ComponentsHierarchy screens={$store.screens} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue