diff --git a/src/core/client/admin/routes/Configure/sections/General/CommentEditingConfig.css b/src/core/client/admin/routes/Configure/sections/General/CommentEditingConfig.css deleted file mode 100644 index d0a099916..000000000 --- a/src/core/client/admin/routes/Configure/sections/General/CommentEditingConfig.css +++ /dev/null @@ -1,3 +0,0 @@ -.commentEditingTextInput { - width: 120px; -} diff --git a/src/core/client/admin/routes/Configure/sections/General/CommentLengthConfig.tsx b/src/core/client/admin/routes/Configure/sections/General/CommentLengthConfig.tsx index 6fd334902..06eb640b9 100644 --- a/src/core/client/admin/routes/Configure/sections/General/CommentLengthConfig.tsx +++ b/src/core/client/admin/routes/Configure/sections/General/CommentLengthConfig.tsx @@ -79,7 +79,9 @@ const CommentLengthConfig: FunctionComponent = ({ disabled }) => ( > = ({ disabled }) => ( > = ({ disabled }) => { <> = ({ disabled }) => { {({ input, meta }) => ( <>
-
-

- Days -

-
+

+ Days +

{ return null; } - let adornment: React.ReactNode = null; - if (this.state.elementCallbacks.length === 1) { - const unit = this.state.elementCallbacks[0]; - adornment = ( - - {unit} - - ); - } - return ( { autoCorrect="off" autoCapitalize="off" spellCheck={false} - adornment={adornment} textAlignCenter aria-label="value" /> - {!adornment && ( + {this.state.elementCallbacks.length === 1 ? ( + + + {this.state.elementCallbacks[0]} + + + ) : ( diff --git a/src/core/client/framework/components/__snapshots__/DurationField.spec.tsx.snap b/src/core/client/framework/components/__snapshots__/DurationField.spec.tsx.snap index 3fe60e34b..8d950bef9 100644 --- a/src/core/client/framework/components/__snapshots__/DurationField.spec.tsx.snap +++ b/src/core/client/framework/components/__snapshots__/DurationField.spec.tsx.snap @@ -5,7 +5,6 @@ exports[`accepts invalid input 1`] = ` itemGutter={true} >