Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

improvement(layout): moves preview under module controls & fixes righ… #89

Merged
merged 1 commit into from
May 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 40 additions & 36 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,6 @@
<Gallery />
</gl-component>

<gl-stack>
<gl-component title="Preview" :closable="false">
<CanvasDebugger />
</gl-component>

<gl-component title="Swap" :closable="false">
<ABSwap />
</gl-component>
</gl-stack>

<gl-stack>
<gl-component title="Input config" :closable="false">
<InputConfig />
Expand All @@ -41,32 +31,46 @@
</gl-stack>
</gl-row>
</gl-col>
<gl-row :closable="false" ref="rightColumn" v-if="focusedModules">
<gl-stack title="Module properties">
<gl-component
v-for="module in focusedModules"
:key="module.$id"
:title="`${module.meta.name} properties`"
:closable="false"
>
<grid v-if="module.props">
<c span="1..">
<button @click="toggleModulePin(module.$id)">
{{ isPinned(module.$id) ? "Unpin" : "Pin" }}
</button>
</c>
<c span="1..">
<Control
v-for="key in getProps(module.$moduleName)"
:id="module.$id"
:prop="key"
:key="key"
/>
</c>
</grid>
</gl-component>
</gl-stack>
</gl-row>
<gl-col :width="33" :closable="false" ref="rightColumn">
<gl-row>
<gl-stack title="Module properties">
<gl-component
v-for="module in focusedModules"
:key="module.$id"
:title="`${module.meta.name} properties`"
:closable="false"
>
<grid v-if="module.props">
<c span="1..">
<button @click="toggleModulePin(module.$id)">
{{ isPinned(module.$id) ? "Unpin" : "Pin" }}
</button>
</c>
<c span="1..">
<Control
v-for="key in getProps(module.$moduleName)"
:id="module.$id"
:prop="key"
:key="key"
/>
</c>
</grid>
</gl-component>
</gl-stack>
</gl-row>

<gl-row>
<gl-stack>
<gl-component title="Preview" :closable="false">
<CanvasDebugger />
</gl-component>

<gl-component title="Swap" :closable="false">
<ABSwap />
</gl-component>
</gl-stack>
</gl-row>
</gl-col>
</gl-row>
</golden-layout>

Expand Down