Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
#2436 improve quickinput layout
Browse files Browse the repository at this point in the history
  • Loading branch information
siemiatj committed Nov 27, 2019
1 parent d8cd131 commit c8e8dd9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/assets/css/table.css
Expand Up @@ -439,6 +439,11 @@
align-items: center;
flex-direction: row;
flex:1;
width: 100%;
border: 1px solid $brand-border-color;
margin-left: 0;
margin-right: 0;
padding-top: 15px;

> * {
margin:0;
Expand Down
9 changes: 8 additions & 1 deletion src/components/table/TableQuickInput.js
@@ -1,6 +1,7 @@
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import cx from 'classnames';

import { addNotification } from '../../actions/AppActions';
import {
Expand Down Expand Up @@ -171,9 +172,15 @@ class TableQuickInput extends Component {

this.rawWidgets = [];

const layoutFieldsAmt = layout ? layout.length : 2;
const stylingLayout = [
{
formGroup: `col-12 col-lg-4 col-xl-5`,
formGroup: cx(`col-12`, {
'col-lg-5': layoutFieldsAmt === 2,
'col-xl-6': layoutFieldsAmt === 2,
'col-lg-4': layoutFieldsAmt === 3,
'col-xl-5': layoutFieldsAmt === 3,
}),
label: `col-12 col-lg-3 quickInput-label`,
field: `col-12 col-lg-9`,
},
Expand Down

0 comments on commit c8e8dd9

Please sign in to comment.