change gui

This commit is contained in:
kwaroran
2024-07-30 20:35:55 +09:00
parent a0d87b8efe
commit 4d74439daf
6 changed files with 709 additions and 707 deletions

View File

@@ -41,9 +41,9 @@
>
</div> -->
<span
class="absolute top-0 left-4 h-8 w-8 rounded-full items-center justify-center flex text-textcolor text-sm"
class="absolute top-0 left-4 h-8 rounded-full items-center justify-center flex text-textcolor text-sm"
>
{(value * multiple).toFixed(fixed)}
{customText === undefined ? (value * multiple).toFixed(fixed) : customText}
</span>
</div>
</div>
@@ -59,6 +59,7 @@
export let multiple = 1
let slider: HTMLDivElement
let mouseDown = false
export let customText: string|undefined = undefined
function changeValue(event) {
const rect = slider.getBoundingClientRect();