Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix(ui): make csv delay input thin
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed Oct 18, 2020
1 parent b4c8487 commit 8416628
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
27 changes: 19 additions & 8 deletions renderer/components/Channels/ChannelCreateForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,14 +310,25 @@ class ChannelCreateForm extends React.Component {
)}

<Flex alignItems="center" justifyContent="space-between" mt={2}>
<Label
htmlFor="remoteCsvDelay"
tooltip={intl.formatMessage({ ...messages.remote_csv_delay_tooltip })}
>
<FormattedMessage {...messages.remote_csv_delay_label} />
</Label>

<IntegerInput field="remoteCsvDelay" placeholder="test" width={80} />
<Flex>
<Span color="gray" fontSize="s" mr={2}>
<Padlock />
</Span>
<Label
htmlFor="remoteCsvDelay"
tooltip={intl.formatMessage({ ...messages.remote_csv_delay_tooltip })}
>
<FormattedMessage {...messages.remote_csv_delay_label} />
</Label>
</Flex>

<IntegerInput
field="remoteCsvDelay"
placeholder="auto"
textAlign="right"
variant="thin"
width={80}
/>
</Flex>
</Box>
)
Expand Down
2 changes: 1 addition & 1 deletion renderer/components/Form/IntegerInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const preventNonNumericOnPaste = e => {
*/
class IntegerInput extends React.Component {
render() {
return <BasicInput {...this.props} pattern="[0-9]*" placeholder="0" type="number" />
return <BasicInput pattern="[0-9]*" placeholder="0" {...this.props} type="number" />
}
}

Expand Down

0 comments on commit 8416628

Please sign in to comment.