Skip to content

Commit d1efb39

Browse files
committed
don't use icons but text instead
1 parent eb34f4c commit d1efb39

File tree

1 file changed

+22
-40
lines changed

1 file changed

+22
-40
lines changed

webui/src/Views/ParameterFormView.elm

+22-40
Original file line numberDiff line numberDiff line change
@@ -340,12 +340,9 @@ editParameterValueView instance parameterValues parameterInfos maybeInstancePara
340340
[ ( "background-color", Maybe.withDefault normalParamColor (Maybe.map (\v -> editingParamColor) maybeEditedValue) )
341341
]
342342
]
343-
[ text parameterName ]
344-
, span
345-
[ class "input-group-addon" ]
346-
[ icon
347-
(dataTypeToIcon dataType)
348-
[ title (dataTypeToTitle dataType) ]
343+
[ text parameterName
344+
, text " "
345+
, sup [] [ text (dataTypeToTitle dataType) ]
349346
]
350347
, input
351348
[ type_
@@ -618,12 +615,9 @@ newParameterValueView template parameterInfos maybeInstanceParameterForm enabled
618615
[ ( "background-color", Maybe.withDefault normalParamColor (Maybe.map (\v -> editingParamColor) maybeEditedValue) )
619616
]
620617
]
621-
[ text parameterName ]
622-
, span
623-
[ class "input-group-addon" ]
624-
[ icon
625-
(dataTypeToIcon dataType)
626-
[ title (dataTypeToTitle dataType) ]
618+
[ text parameterName
619+
, text " "
620+
, sup [] [ text (dataTypeToTitle dataType) ]
627621
]
628622
, input
629623
[ type_
@@ -718,33 +712,21 @@ getErrorMessage maybeValue paramName dataType =
718712
)
719713

720714

721-
dataTypeToIcon : ParameterType -> String
722-
dataTypeToIcon dataType =
723-
case dataType of
724-
StringParam ->
725-
"glyphicon glyphicon-text-size"
726-
727-
RawParam ->
728-
"glyphicon glyphicon-asterisk"
729-
730-
IntParam ->
731-
"fa fa-hashtag"
732-
733-
DecimalParam ->
734-
"glyphicon glyphicon-sound-5-1"
735-
736-
737715
dataTypeToTitle : ParameterType -> String
738716
dataTypeToTitle dataType =
739-
case dataType of
740-
StringParam ->
741-
"String"
742-
743-
RawParam ->
744-
"Unsafe String"
745-
746-
IntParam ->
747-
"Integer"
748-
749-
DecimalParam ->
750-
"Decimal"
717+
String.concat
718+
[ "("
719+
, case dataType of
720+
StringParam ->
721+
"String"
722+
723+
RawParam ->
724+
"Raw"
725+
726+
IntParam ->
727+
"Integer"
728+
729+
DecimalParam ->
730+
"Decimal"
731+
, ")"
732+
]

0 commit comments

Comments
 (0)