Skip to content

Commit 50a31f1

Browse files
authored
Merge pull request #27 from vvvyyynet/main
fix glitch with devil
2 parents 9fd6d7c + 19b8da5 commit 50a31f1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/routes/Devilstable.svelte

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
const DATA_MAX = 827;
66
77
const brushDimension = 200;
8+
const brushDimensionWithSafetyPixel = brushDimension + 1; // fixes a glitch, where Brush and Detail don't fit next to each other on PageResize.
89
910
let selection = $state({ start: 1, end: 100 });
1011
@@ -91,14 +92,14 @@
9192
</script>
9293

9394
<Brush
94-
height={mobile ? brushDimension : height}
9595
width={mobile ? width : brushDimension}
96+
height={mobile ? brushDimension : height}
9697
data={boolData}
9798
brushE={(e) => (selection = e)}
9899
/>
99100
<Detail
100101
{codices}
101-
width={mobile ? width : width - brushDimension}
102+
width={mobile ? width : width - brushDimensionWithSafetyPixel}
102103
height={mobile ? height - brushDimension : height}
103104
data={[
104105
{

0 commit comments

Comments
 (0)