Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Dec 17, 2024
1 parent c7bdc02 commit 957578b
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions packages/repl/src/lib/Output/PaneWithPanel.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,22 @@

<SplitPane {max} min="10%" type="vertical" bind:pos>
{#snippet a()}
<slot name="main" />
<section>
<slot name="main" />
</section>
{/snippet}

{#snippet b()}
<div class="panel-header">
<button class="panel-heading" on:click={toggle}>{panel}</button>
<slot name="panel-header" />
</div>

<div class="panel-body">
<slot name="panel-body" />
</div>
<section>
<div class="panel-header">
<button class="panel-heading" on:click={toggle}>{panel}</button>
<slot name="panel-header" />
</div>

<div class="panel-body">
<slot name="panel-body" />
</div>
</section>
{/snippet}
</SplitPane>

Expand All @@ -73,4 +77,8 @@
flex: 1;
text-align: left;
}
section {
overflow: hidden;
}
</style>

0 comments on commit 957578b

Please sign in to comment.