Skip to content
1 change: 1 addition & 0 deletions editor/src/messages/tool/tool_messages/pen_tool.rs
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove theses debug changes

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please check now

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You've committed more things by accident. In the future before you ping with comment please check yourself if the changes in the File Changes tab of the pr only include what you what to be part of the pr.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really sorry , the pr got quite messy I will make sure of it in the coming pull requests

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries. :)

Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,7 @@ impl PenToolData {
let document = snap_data.document;
let next_handle_start = self.next_handle_start;
let handle_start = self.latest_point()?.handle_start;

let mouse = snap_data.input.mouse.position;
self.handle_swapped = false;
self.handle_end_offset = None;
Expand Down
14 changes: 11 additions & 3 deletions frontend/src/components/window/workspace/Panel.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@
</script>

<LayoutCol on:pointerdown={() => panelType && editor.handle.setActivePanel(panelType)} class={`panel ${className}`.trim()} {classes} style={styleName} {styles}>
<LayoutRow class="tab-bar" classes={{ "min-widths": tabMinWidths }}>
<LayoutRow class="tab-bar" classes={{ "min-widths": tabMinWidths }} >

<LayoutRow class="tab-group" scrollableX={true}>
{#each tabLabels as tabLabel, tabIndex}
<LayoutRow
Expand Down Expand Up @@ -148,11 +149,16 @@
{/if}
</LayoutRow>
{/each}
{#if panelType == 'Document'}
<LayoutRow class="tab-group-empty-space" on:dblclick={() => editor.handle.newDocumentDialog()}></LayoutRow>
{/if}
</LayoutRow>

<!-- <PopoverButton style="VerticalEllipsis">
<TextLabel bold={true}>Panel Options</TextLabel>
<TextLabel multiline={true}>Coming soon</TextLabel>
</PopoverButton> -->

</LayoutRow>
<LayoutCol class="panel-body">
{#if panelType}
Expand Down Expand Up @@ -218,13 +224,15 @@
background: var(--color-1-nearblack);
border-radius: 6px;
overflow: hidden;
.tab-bar {
height: 28px;
min-height: auto;
background: var(--color-1-nearblack); // Needed for the viewport hole punch on desktop
flex-shrink: 0;
.tab-group-empty-space {
width: 100%;
}
&.min-widths .tab-group .tab {
min-width: 120px;
max-width: 360px;
Expand Down