Commit 6bcebd63 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[ngrams] fix vertical space in the header

parent 30796617
...@@ -139,15 +139,12 @@ tableContainerCpt { dispatch ...@@ -139,15 +139,12 @@ tableContainerCpt { dispatch
H.div {className: "jumbotron1"} H.div {className: "jumbotron1"}
[ R2.row [ R2.row
[ H.div {className: "panel panel-default"} [ H.div {className: "panel panel-default"}
[ H.div {className: "panel-heading"} [ H.div {className: "panel-heading"} [
[ H.h2 {className: "panel-title", style: {textAlign : "center"}} R2.row
[ H.span {className: "glyphicon glyphicon-hand-down"} [] [ H.div {className: "col-md-2", style: {marginTop: "6px"}}
, H.text "Extracted Terms" [
] if A.null props.tableBody && searchQuery /= "" then
, R2.row H.li { className: "list-group-item" } [
[ H.div {className: "col-md-3", style: {marginTop: "6px"}}
[ H.div {} (
if A.null props.tableBody && searchQuery /= "" then [
H.button { className: "btn btn-primary" H.button { className: "btn btn-primary"
, on: { click: const $ dispatch , on: { click: const $ dispatch
$ addNewNgramA $ addNewNgramA
...@@ -155,8 +152,7 @@ tableContainerCpt { dispatch ...@@ -155,8 +152,7 @@ tableContainerCpt { dispatch
} }
} }
[ H.text ("Add " <> searchQuery) ] [ H.text ("Add " <> searchQuery) ]
] else [] ] else H.div {} []
)
] ]
, H.div {className: "col-md-2", style: {marginTop : "6px"}} , H.div {className: "col-md-2", style: {marginTop : "6px"}}
[ H.li {className: "list-group-item"} [ H.li {className: "list-group-item"}
...@@ -174,19 +170,33 @@ tableContainerCpt { dispatch ...@@ -174,19 +170,33 @@ tableContainerCpt { dispatch
, on: {change: setTermSizeFilter <<< readTermSize <<< R2.unsafeEventValue}} , on: {change: setTermSizeFilter <<< readTermSize <<< R2.unsafeEventValue}}
(map optps1 termSizes)] (map optps1 termSizes)]
] ]
, H.div {className: "col-md-4", style: {marginTop : "6px", marginBottom : "1px"}} , H.div { className: "col-md-2", style: { marginTop: "6px" } } [
[ H.li {className: "list-group-item"} H.li {className: "list-group-item"} [
[ props.pageSizeDescription H.div { className: "form-inline" } [
, props.pageSizeControl H.div { className: "form-group" } [
, H.text " items / " props.pageSizeControl
, props.paginationLinks ] , H.label {} [ H.text " items" ]
-- H.div { className: "col-md-6" } [ props.pageSizeControl ]
-- , H.div { className: "col-md-6" } [
-- ]
] ]
] ]
] ]
, editor
, H.li {className: "list-group-item"} [
selectButtons (selectionsExist ngramsSelection)
] ]
, H.div {className: "col-md-4", style: {marginTop : "6px", marginBottom : "1px"}} [
H.li {className: "list-group-item"} [
props.pageSizeDescription
, props.paginationLinks
]
]
]
]
, editor
, if (selectionsExist ngramsSelection) then
H.li {className: "list-group-item"} [
selectButtons true
] else
H.div {} []
, H.div {id: "terms_table", className: "panel-body"} , H.div {id: "terms_table", className: "panel-body"}
[ H.table {className: "table able"} [ H.table {className: "table able"}
[ H.thead {className: "tableHeader"} [props.tableHead] [ H.thead {className: "tableHeader"} [props.tableHead]
...@@ -275,7 +285,11 @@ loadedNgramsTableCpt = R.hooksComponent "G.C.NT.loadedNgramsTable" cpt ...@@ -275,7 +285,11 @@ loadedNgramsTableCpt = R.hooksComponent "G.C.NT.loadedNgramsTable" cpt
pure $ R.fragment $ pure $ R.fragment $
autoUpdate <> resetSaveButtons <> [ autoUpdate <> resetSaveButtons <> [
search H.h4 {style: {textAlign : "center"}} [
H.span {className: "glyphicon glyphicon-hand-down"} []
, H.text "Extracted Terms"
]
, search
, T.table { colNames , T.table { colNames
, container: tableContainer { dispatch: performAction , container: tableContainer { dispatch: performAction
, ngramsChildren , ngramsChildren
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment