Made it easier to edit avatars

This commit is contained in:
2019-09-06 09:15:49 +09:00
parent 49547cc3b8
commit ca21bd5df0
7 changed files with 54 additions and 27 deletions

View File

@ -141,7 +141,7 @@ func RenderField(b *strings.Builder, v *reflect.Value, field reflect.StructField
}
// Int
if fieldType == "int" {
if fieldType == "int" || fieldType == "int64" {
b.WriteString(components.InputNumber(idPrefix+field.Name, float64(fieldValue.Int()), field.Name, field.Tag.Get("tooltip"), "", "", "1"))
return
}