Commit 02161d28 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

Merge branch 'dev-right-panel-in-docs' into dev-doc-table-score

parents e0588bfd fbf4ae3d
...@@ -16,6 +16,10 @@ ...@@ -16,6 +16,10 @@
max-height: 200px; max-height: 200px;
overflow-y: scroll; overflow-y: scroll;
} }
#page-wrapper .side-panel .corpus-doc-view .list-group .list-group-item-heading {
display: inline-block;
width: 60px;
}
.simple-layout { .simple-layout {
height: 100%; height: 100%;
......
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
.annotated-field-runs .annotated-field-runs
max-height: 200px max-height: 200px
overflow-y: scroll overflow-y: scroll
.list-group
.list-group-item-heading
display: inline-block
width: 60px
.simple-layout .simple-layout
height: 100% height: 100%
......
...@@ -89,21 +89,28 @@ docViewCpt = R.hooksComponentWithModule thisModule "docView" cpt ...@@ -89,21 +89,28 @@ docViewCpt = R.hooksComponentWithModule thisModule "docView" cpt
R2.row R2.row
[ [
R2.col 12 R2.col 12
[ H.h4 {} [ annotate doc.title ] [ H.h4 {} [
H.span {} [
badge "title"
, annotate doc.title
]
]
, H.ul { className: "list-group" } , H.ul { className: "list-group" }
[ li' [ H.span {} [ text' doc.source ] [ li' [ badgeLi "source"
, badge "source" , text' doc.source
] ]
-- TODO add href to /author/ if author present in -- TODO add href to /author/ if author present in
, li' [ H.span {} [ text' doc.authors ] , li' [ badgeLi "authors"
, badge "authors" , text' doc.authors
] ]
, li' [ H.span {} [ H.text $ publicationDate $ Document doc ] , li' [ badgeLi "date"
, badge "date" , H.text $ publicationDate $ Document doc
] ]
] ]
, badge "abstract" , H.span {} [
, annotate doc.abstract badge "abstract"
, annotate doc.abstract
]
, H.div { className: "jumbotron" } , H.div { className: "jumbotron" }
[ H.p {} [ H.text "Empty Full Text" ] [ H.p {} [ H.text "Empty Full Text" ]
] ]
...@@ -118,12 +125,17 @@ docViewCpt = R.hooksComponentWithModule thisModule "docView" cpt ...@@ -118,12 +125,17 @@ docViewCpt = R.hooksComponentWithModule thisModule "docView" cpt
, setTermList , setTermList
, text } , text }
badge s = H.span { className: "badge badge-default badge-pill" } [ H.text s ] badge s = H.span { className: "badge badge-default badge-pill" } [ H.text s ]
badgeLi s = H.span { className: "list-group-item-heading" } [
H.span { className: "badge-container" } [
H.span { className: "badge badge-default badge-pill" } [ H.text s ]
]
]
li' = H.li { className: "list-group-item justify-content-between" } li' = H.li { className: "list-group-item justify-content-between" }
setTermListOrAddA ngram Nothing = addNewNgramA ngram setTermListOrAddA ngram Nothing = addNewNgramA ngram
setTermListOrAddA ngram (Just oldList) = setTermListA ngram <<< replace oldList setTermListOrAddA ngram (Just oldList) = setTermListA ngram <<< replace oldList
setTermList ngram mOldList = dispatch <<< setTermListOrAddA (findNgramRoot ngrams ngram) mOldList setTermList ngram mOldList = dispatch <<< setTermListOrAddA (findNgramRoot ngrams ngram) mOldList
-- Here the use of findNgramRoot makes that we always target the root of an ngram group. -- Here the use of findNgramRoot makes that we always target the root of an ngram group.
text' x = H.text $ fromMaybe "Nothing" x text' x = H.span { className: "list-group-item-text" } [ H.text $ fromMaybe "Nothing" x ]
NodePoly {hyperdata: Document doc} = document NodePoly {hyperdata: Document doc} = document
type LayoutProps = ( type LayoutProps = (
......
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