Skip to content

Commit

Permalink
fix(ui): fix produce multi / tombstone not working and forms layout i…
Browse files Browse the repository at this point in the history
…ssue (#1396)

close #1381
  • Loading branch information
AlexisSouquiere authored and tchiotludo committed Apr 4, 2023
1 parent 23ff2bb commit b021966
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion client/src/components/Form/Input/Input.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PropTypes from 'prop-types';

const Input = props => {
const { name, label, placeholder, error, noStyle, wrapperClass, inputClass, ...rest } = props;
let wrapperClassRender = 'form-group';
let wrapperClassRender = 'form-group row';
let inputClassRender = 'col-sm-10';
if (noStyle) {
wrapperClassRender = '';
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Form/Select/Select.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PropTypes from 'prop-types';

const Select = ({ name, label, items, error, wrapperClass, selectClass, blankItem, ...rest }) => {
return (
<div className={`${wrapperClass || 'form-group'}`}>
<div className={`${wrapperClass || 'form-group row'}`}>
{label !== '' ? (
<label htmlFor={name} className="col-sm-2 col-form-label">
{label}
Expand Down
13 changes: 4 additions & 9 deletions client/src/containers/Topic/TopicProduce/TopicProduce.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ class TopicProduce extends Form {
<div className="row khq-multiple col-sm-7">
{this.renderCheckbox(
'isMultiMessage',
'',
multiMessage,
() => {
this.setState({
Expand Down Expand Up @@ -247,7 +246,6 @@ class TopicProduce extends Form {
<div className="row khq-multiple col-sm-7">
{this.renderCheckbox(
'isTombstone',
'',
tombstone,
() => {
this.setState({ tombstone: !tombstone });
Expand Down Expand Up @@ -299,9 +297,9 @@ class TopicProduce extends Form {
'',
'Key',
'text',
undefined,
true,
'col-sm-6',
'col-sm-6 row',
'col-sm-12 p-0',
'input-class'
)}

Expand All @@ -310,9 +308,9 @@ class TopicProduce extends Form {
'',
'Value',
'text',
undefined,
true,
'col-sm-6',
'col-sm-6 row',
'col-sm-12 p-0',
'input-class'
)}
</div>
Expand Down Expand Up @@ -441,7 +439,6 @@ class TopicProduce extends Form {
<Header title={`Produce to ${topicId} `} />
{this.renderDropdown(
'Topic',
topics,
topicsSearchValue,
topicId,
value => {
Expand All @@ -462,7 +459,6 @@ class TopicProduce extends Form {
)}
{this.renderDropdown(
'Key schema',
keySchema.map(key => key.subject),
keySchemaSearchValue,
selectedKeySchema,
value => {
Expand Down Expand Up @@ -495,7 +491,6 @@ class TopicProduce extends Form {

{this.renderDropdown(
'Value schema',
valueSchema.map(value => value.subject),
valueSchemaSearchValue,
selectedValueSchema,
value => {
Expand Down

0 comments on commit b021966

Please sign in to comment.