-
\ No newline at end of file
diff --git a/src/ui/Sidebar.svelte b/src/ui/Sidebar.svelte
index 45f9eb6..c68f6eb 100644
--- a/src/ui/Sidebar.svelte
+++ b/src/ui/Sidebar.svelte
@@ -4,10 +4,17 @@
isMinPolycubes,
polycubes,
solutions,
- colorFromIndex,
- activeSolution, showingSolution, totalVolume, somaDimX, somaDimY, somaDimZ, debug
+ solving,
+ totalVolume,
+ somaDimX,
+ somaDimY,
+ somaDimZ,
+ MAX_DIMS,
+ MIN_DIMS,
+ solve
} from "../store";
import SolutionList from "./SolutionList.svelte";
+ import IncDecNum from "./IncDecNum.svelte";
$: numCubes = $polycubes.length;
$: cubes = $polycubes;
@@ -40,21 +47,30 @@
Dimensions:
- X
-
somaDimX.set(e.target.valueAsNumber)}/>
- Y
-
somaDimY.set(e.target.valueAsNumber)}/>
- Z
-
somaDimZ.set(e.target.valueAsNumber)}/>
+
+
+
{#if $totalVolume > 32}
The total number of units exceeds 32. Attempting to solve puzzles with more than 32 units results in significantly slower computation time.
{/if}
@@ -64,9 +80,13 @@
@@ -75,8 +95,8 @@
class="solve"
on:click={solve}
title="{genTooltip(enoughSubcubes, noEmpties, size)}"
- disabled="{solving || !readyToSolve}">
- {solving ? "Solving..." : "Solve!"}
+ disabled="{$solving || !readyToSolve}">
+ {$solving ? "Solving..." : "Solve!"}
@@ -95,7 +115,7 @@
.choice {
display: block;
text-align: center;
- margin-top: 1em;
+ margin-top: 0.5em;
}
input {
display: inline-block;
@@ -108,14 +128,6 @@
color: white;
background-color: #ff3e00;
}
- button:hover:not(:disabled) {
- cursor: pointer;
- background-color: #c1c1c1;
- }
- button:disabled {
- color: #a7a7a7;
- background-color: #616161;
- }
button.solve {
width: auto;
color: white;
@@ -124,6 +136,7 @@
border-radius: 0.5em;
border-style: none;
margin: 0;
+ cursor: pointer;
}
button.solve:disabled {
width: auto;
@@ -151,8 +164,8 @@
padding-bottom: 0;
}
.widgets > * {
- padding-top: 1em;
- padding-bottom: 1em;
+ padding-top: 0.5em;
+ padding-bottom: 0.5em;
}
h1 {
margin: 0;
diff --git a/src/ui/SolutionViewer.svelte b/src/ui/SolutionViewer.svelte
index 1560ed5..6a1c1db 100644
--- a/src/ui/SolutionViewer.svelte
+++ b/src/ui/SolutionViewer.svelte
@@ -1,38 +1,35 @@