+ {#if collapsed1}
+
+ {:else if collapsed2}
+
+
+
+ {:else}
+
+
+
+ {#if isSplitter}
+
(size += e.detail)} />
+
+
+
+ {/if}
+ {/if}
+
+ {#if allowCollapseChild1 && !collapsed2}
+ {#if collapsed1}
+
{
+ collapsed1 = false;
+ }}
+ >
+
+
+ {:else}
+
{
+ collapsed1 = true;
+ }}
+ >
+
+
+ {/if}
+ {/if}
+
+ {#if allowCollapseChild2 && !collapsed1}
+ {#if collapsed2}
+
{
+ collapsed2 = false;
+ }}
+ >
+
+
+ {:else}
+
{
+ collapsed2 = true;
+ }}
+ >
+
+
+ {/if}
{/if}
@@ -49,4 +114,20 @@
position: relative;
overflow: hidden;
}
+
+ .collapse {
+ position: absolute;
+ right: 16px;
+ width: 40px;
+ height: 16px;
+ background: var(--theme-bg-2);
+ display: flex;
+ justify-content: center;
+ }
+
+ .collapse:hover {
+ color: var(--theme-font-hover);
+ background: var(--theme-bg-3);
+ cursor: pointer;
+ }
diff --git a/packages/web/src/icons/FontIcon.svelte b/packages/web/src/icons/FontIcon.svelte
index 492be6dbb..57302b6e8 100644
--- a/packages/web/src/icons/FontIcon.svelte
+++ b/packages/web/src/icons/FontIcon.svelte
@@ -103,6 +103,10 @@
'icon chevron-left': 'mdi mdi-chevron-left',
'icon chevron-right': 'mdi mdi-chevron-right',
'icon chevron-up': 'mdi mdi-chevron-up',
+ 'icon chevron-double-down': 'mdi mdi-chevron-double-down',
+ 'icon chevron-double-left': 'mdi mdi-chevron-double-left',
+ 'icon chevron-double-right': 'mdi mdi-chevron-double-right',
+ 'icon chevron-double-up': 'mdi mdi-chevron-double-up',
'icon menu-right': 'mdi mdi-menu-right',
'icon plugin': 'mdi mdi-toy-brick',
'icon menu': 'mdi mdi-menu',
diff --git a/packages/web/src/perspectives/PerspectiveView.svelte b/packages/web/src/perspectives/PerspectiveView.svelte
index 6349bad58..77bce7aa5 100644
--- a/packages/web/src/perspectives/PerspectiveView.svelte
+++ b/packages/web/src/perspectives/PerspectiveView.svelte
@@ -183,7 +183,7 @@