This repository was archived by the owner on Nov 22, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed
packages/builder/src/components/ComponentOptions/components/Content/Loop/Grid Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 1
1
import React , { Fragment } from 'react'
2
2
3
3
import { FastField , useFormikContext } from 'formik'
4
+ import classnames from 'classnames'
4
5
5
6
import Header from './header'
6
7
import { Table , DefaultRow } from '../../../../../Form/table'
7
8
9
+ import './style.css'
10
+
8
11
const Row = ( { index : rowIndex , name, data, arrayHelpers } ) =>
9
12
< DefaultRow
10
13
index = { rowIndex } arrayHelpers = { arrayHelpers }
@@ -32,6 +35,11 @@ export default () => {
32
35
columns = { columns }
33
36
header = { Header }
34
37
defaultItem = { Array ( columns ) . fill ( '' ) }
35
- className = "border-top-0"
38
+ className = { classnames ( {
39
+ 'table' : true ,
40
+ 'grid' : true ,
41
+ 'grid-slim' : columns > 5 ,
42
+ 'border-top-0 border-bottom' : true ,
43
+ } ) }
36
44
/>
37
45
}
Original file line number Diff line number Diff line change
1
+ /* Reduce padding in a grid dropdown-toggle button */
2
+ table .grid th .input-group button .dropdown-toggle {
3
+ padding : 0.5rem 0.8rem ;
4
+ }
5
+
6
+ /* Reduce size of input group dropdown toggle,
7
+ and hide icon, if columns are very narrow. */
8
+ table .grid .grid-slim th .input-group button .dropdown-toggle {
9
+ padding : 0.5rem ;
10
+ }
11
+
12
+ table .grid .grid-slim th .input-group button .dropdown-toggle i {
13
+ display : none;
14
+ }
15
+
16
+ table .grid .grid-slim th .input-group button .dropdown-toggle ::after {
17
+ margin-left : 0 ;
18
+ }
19
+
20
+ /* Highlight active dropdown item */
21
+ .dropdown-menu .dropdown-item .dropdown-item-active {
22
+ background-color : var (--light );
23
+ }
You can’t perform that action at this time.
0 commit comments