diff --git a/apps/client/src/widgets/PromotedAttributes.css b/apps/client/src/widgets/PromotedAttributes.css index 45ebad5b2..2e1cab3dd 100644 --- a/apps/client/src/widgets/PromotedAttributes.css +++ b/apps/client/src/widgets/PromotedAttributes.css @@ -73,6 +73,11 @@ body.mobile .promoted-attributes-widget { border-radius: 25%; } +.promoted-attribute-label-number input { + text-align: right; + width: 120px; +} + .promoted-attribute-label-color input[type="hidden"][value=""] + input[type="color"] { position: relative; opacity: 0.5; diff --git a/apps/client/src/widgets/PromotedAttributes.tsx b/apps/client/src/widgets/PromotedAttributes.tsx index 45258577b..7a98aab44 100644 --- a/apps/client/src/widgets/PromotedAttributes.tsx +++ b/apps/client/src/widgets/PromotedAttributes.tsx @@ -8,7 +8,7 @@ import { t } from "../services/i18n"; import { DefinitionObject, LabelType } from "../services/promoted_attribute_definition_parser"; import server from "../services/server"; import FNote from "../entities/fnote"; -import { HTMLInputTypeAttribute, TargetedEvent } from "preact"; +import { HTMLInputTypeAttribute, InputHTMLAttributes, TargetedEvent } from "preact"; import tree from "../services/tree"; interface Cell { @@ -113,7 +113,8 @@ function PromotedAttributeCell(props: CellProps) { }, [ props.shouldFocus ]); return ( -