Skip to content

Commit

Permalink
Merge pull request #27 from vvvyyynet/main
Browse files Browse the repository at this point in the history
fix glitch with devil
  • Loading branch information
vvvyyynet authored Nov 12, 2024
2 parents 9fd6d7c + 19b8da5 commit 50a31f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/routes/Devilstable.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
const DATA_MAX = 827;
const brushDimension = 200;
const brushDimensionWithSafetyPixel = brushDimension + 1; // fixes a glitch, where Brush and Detail don't fit next to each other on PageResize.
let selection = $state({ start: 1, end: 100 });
Expand Down Expand Up @@ -91,14 +92,14 @@
</script>

<Brush
height={mobile ? brushDimension : height}
width={mobile ? width : brushDimension}
height={mobile ? brushDimension : height}
data={boolData}
brushE={(e) => (selection = e)}
/>
<Detail
{codices}
width={mobile ? width : width - brushDimension}
width={mobile ? width : width - brushDimensionWithSafetyPixel}
height={mobile ? height - brushDimension : height}
data={[
{
Expand Down

0 comments on commit 50a31f1

Please sign in to comment.