Skip to content

Commit c0c2998

Browse files
committed
Updates to plan view to support floating panels.
1 parent 9fa4005 commit c0c2998

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

packages/theme/styles/common.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@
130130
.antiPanel-navigator,
131131
.antiPanel-component {
132132
display: flex;
133-
height: 100%;
134133
min-height: 0;
135134

136135
&.header { background-color: var(--theme-comp-header-color); }

packages/theme/styles/components.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
display: flex;
1919
flex-direction: column;
2020
flex-grow: 1;
21-
height: 100%;
2221
min-height: 0;
2322
min-width: 0;
23+
margin: var(--spacing-2);
2424
border: 1px solid var(--theme-divider-color); // var(--global-surface-02-BorderColor);
2525
border-radius: var(--small-focus-BorderRadius);
2626
padding: var(--spacing-2);

plugins/time-resources/src/components/PlanView.svelte

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@
8686

8787
{#if $deviceInfo.navigator.visible}
8888
<ToDosNavigator bind:mode bind:tag bind:currentDate />
89-
<Separator name={'time'} float={$deviceInfo.navigator.float} index={0} color={'var(--theme-divider-color)'} />
89+
<Separator name={'time'} float={$deviceInfo.navigator.float} index={0} separatorSize={0} />
9090
{/if}
9191
<div
92-
class="flex-col w-full clear-mins mobile-wrapper"
92+
class="antiPanel-PlanView flex-col clear-mins"
9393
class:left-divider={!$deviceInfo.navigator.visible}
9494
bind:this={mainPanel}
9595
>
@@ -105,3 +105,16 @@
105105
on:dragDrop={drop}
106106
/>
107107
{/if}
108+
109+
<style lang="scss">
110+
.antiPanel-PlanView {
111+
display: flex;
112+
flex-direction: column;
113+
flex-grow: 1;
114+
background-color: var(--theme-workbench-color);
115+
margin: var(--spacing-2) 0 var(--spacing-2) var(--spacing-2);
116+
border: 1px solid var(--theme-divider-color);
117+
border-radius: var(--small-focus-BorderRadius);
118+
min-width: 320px;
119+
}
120+
</style>

0 commit comments

Comments
 (0)