Skip to content

Commit

Permalink
fix: right scrollbar not working, add zoom/center buttons (#66)
Browse files Browse the repository at this point in the history
* fix: also fix code preview scrollbar
  • Loading branch information
rmoesbergen authored May 19, 2024
1 parent 927905b commit 3053b39
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/components/core/sidepanel/SidePanel.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ onDestroy(() => {
<style>
.panel {
display: flex;
pointer-events: auto;
}
.dragger {
position: relative;
Expand Down
1 change: 1 addition & 0 deletions src/lib/components/ui/SideButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ const { icon, onclick }: Props = $props();
align-items: center;
background: var(--primary);
color: var(--on-primary);
pointer-events: auto;
}
</style>
1 change: 1 addition & 0 deletions src/lib/components/workspace/Workspace.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ function openCode() {
display: flex;
height: 100%;
z-index: 99;
pointer-events: none;
}
.content {
Expand Down
1 change: 1 addition & 0 deletions src/lib/domain/blockly/blockly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ export function setupWorkspace(
toolbox: loadToolbox(robot),
theme: theme,
zoom: {
controls: true,
startScale: 0.8,
},
});
Expand Down

0 comments on commit 3053b39

Please sign in to comment.