Skip to content

Commit

Permalink
[#362] Fix input bottom margin
Browse files Browse the repository at this point in the history
  • Loading branch information
palagdan authored and blcham committed Nov 4, 2024
1 parent 84cb4c2 commit 5ac92ff
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions src/components/DefaultInput.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export default class DefaultInput extends React.Component {
<Form.Group
size="small"
controlId={Math.floor(Math.random() * Number.MAX_SAFE_INTEGER)}
className="mb-3"
>
<Form.Check
type="checkbox"
Expand All @@ -85,7 +86,7 @@ export default class DefaultInput extends React.Component {

_renderRadio() {
return (
<FormGroup size="small">
<FormGroup size="small" className="mb-3">
<Form.Check
type="radio"
ref={(c) => (this.input = c)}
Expand All @@ -100,7 +101,7 @@ export default class DefaultInput extends React.Component {

_renderSelect() {
return (
<FormGroup size="small">
<FormGroup size="small" className="mb-3">
{this._renderLabel()}
<FormControl
as="select"
Expand All @@ -124,7 +125,7 @@ export default class DefaultInput extends React.Component {
_renderTextArea() {
// TODO validation
return (
<FormGroup size="small">
<FormGroup size="small" className="mb-3">
{this._renderLabel()}
<FormControl
ref={(c) => (this.input = c)}
Expand All @@ -140,7 +141,7 @@ export default class DefaultInput extends React.Component {

_renderInput() {
return (
<FormGroup size="small">
<FormGroup size="small" className="mb-3">
{this._renderLabel()}
<FormControl
className={this.props.validation.classname}
Expand Down
2 changes: 1 addition & 1 deletion src/components/answer/DateTimeAnswer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const DateTimeAnswer = (props) => {
};

return (
<FormGroup size="small">
<FormGroup size="small" className="mb-3">
<Form.Label className={"w-100"}>{props.label}</Form.Label>
<DatePicker
selected={date}
Expand Down
2 changes: 1 addition & 1 deletion src/components/answer/TypeaheadAnswer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ const TypeaheadAnswer = (props) => {
};

return (
<FormGroup size="small">
<FormGroup size="small" className="mb-3">
<Form.Label>{props.label}</Form.Label>
<IntelligentTreeSelect
styles={_getControlValidationStyle()}
Expand Down

0 comments on commit 5ac92ff

Please sign in to comment.