aboutsummaryrefslogtreecommitdiff
path: root/src/view
diff options
context:
space:
mode:
authorJoris2022-10-09 19:18:57 +0200
committerJoris2022-10-09 19:18:57 +0200
commita1960c7e10691e460b835446bb358c27e971fba8 (patch)
tree03ba549b666d858adcf35780a643e8d320cbc70c /src/view
parent01e217771b031cca4c123e9efc3c14ca1e406a70 (diff)
Adapt font size to small devices
Diffstat (limited to 'src/view')
-rw-r--r--src/view/form.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/view/form.ts b/src/view/form.ts
index 67df0d4..77a8cb7 100644
--- a/src/view/form.ts
+++ b/src/view/form.ts
@@ -59,7 +59,7 @@ type LabelInputParams = {
function labelInput({ className, type, name, label, checked, value }: LabelInputParams) {
return h('label',
- { className },
+ className !== undefined ? { className } : {},
h('input', { type, name, checked, value }),
label
)