1
0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2024-11-25 08:57:31 +00:00

Tiny miscellanous changes

This commit is contained in:
Cadence Ember 2021-05-12 00:29:05 +12:00
parent ec34702d90
commit aa953dc796
No known key found for this signature in database
GPG Key ID: BC1C2C61CF521B17
4 changed files with 12 additions and 3 deletions

View File

@ -10,7 +10,7 @@ mixin input({id, label, description, type, placeholder, disabled, list})
- disabled = disabled || false
.field-row
label.field-row__label(for=id)= label
input(type=type id=id name=id value=settings[id] placeholder=placeholder disabled=disabled list=`${id}-list`).border-look.field-row__input
input(type=(type) id=id name=id value=settings[id] placeholder=placeholder disabled=disabled list=`${id}-list`).border-look.field-row__input
if list
datalist(id=`${id}-list`)
each item in list

View File

@ -8,7 +8,7 @@ $bg-accent-area: #44474b
$fg-bright: #fff
$fg-main: #ddd
$fg-dim: #bbb
$fg-warning: #ffb98f
$fg-warning: #fdca6d
$edge-grey: #808080

View File

@ -43,6 +43,12 @@ fieldset
align-items: start
padding-bottom: 15px
&.max-width-input
grid-template-columns: auto 1fr
.field-row__input
justify-self: stretch
&__label
grid-area: label
padding: 8px 8px 8px 0px
@ -58,6 +64,7 @@ fieldset
margin: 12px 0px 18px
font-size: 16px
color: #ccc
line-height: 1.2
//
.checkbox-row

View File

@ -86,7 +86,9 @@ function presetEnsureParams(list) {
() => ({
statusCode: 400,
contentType: "application/json",
content: `Some required body parameters were missing. Required parameters: ${list.join(", ")}`
content: {
error: `Some required body parameters were missing. Required parameters: ${list.join(", ")}`
}
})
]
}