Skip to content

Commit

Permalink
Merge pull request #149 from sbrin/fix-rulers-code-update
Browse files Browse the repository at this point in the history
Fix rulers css, fix code update, enable auto-save
  • Loading branch information
sbrin authored Mar 22, 2024
2 parents d783e27 + ac06ada commit 3be74d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ navigator.serial?.addEventListener('disconnect', flipperDisconnect);
flex-shrink: 0;
overflow: auto;
display: flex;
padding: 0px 20px 20px 0;
padding: 10px 20px 20px 20px;
margin: 0 auto;
}
Expand Down
5 changes: 1 addition & 4 deletions src/components/fui/FuiCode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const hovered = ref(false);
watch(
[updates, layers],
debounce(() => onUpdate(), 250)
debounce(() => onUpdate(), 500)
);
watch(
Expand All @@ -47,9 +47,6 @@ function selectRow() {
}
}
function onUpdate() {
if (hovered.value) {
return;
}
const sourceCode = session.generateCode();
content.value = sourceCode.code;
layersMap = sourceCode.map;
Expand Down

0 comments on commit 3be74d2

Please sign in to comment.