bos-settings/frontend/src/lib/components/NumberField.svelte
Breadway dce2031743 Settings redesign: hub-based navigation, plus hardening and bug fixes
Rework the settings app around hub pages (home, network, displays, input,
apps, privacy, system) with a redesigned sidebar, shared nav state, and new
hub view components. Alongside the redesign: validate webview inputs into
root commands (users, firewall, snapshots, wifi), fix set_charge_threshold
writing the percentage via tee stdin, prevent streaming installs from
hanging on inherited stdin, add frontend type fixes, sync versions to
0.8.2, and clean up clippy/svelte-check warnings.
2026-08-31 16:04:02 +08:00

31 lines
561 B
Svelte

<script lang="ts">
import Row from "./Row.svelte";
let {
label,
value = $bindable(),
min,
max,
step = 1,
}: { label: string; value: number; min: number; max: number; step?: number } = $props();
</script>
<Row {label}>
<input type="number" bind:value {min} {max} {step} />
</Row>
<style>
input {
width: 10ch;
background-color: var(--bg);
color: var(--on-surface);
border: 1px solid transparent;
border-radius: var(--radius-sm, 10px);
padding: 6px 10px;
}
input:focus {
outline: none;
border-color: var(--accent);
}
</style>