Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
purescript-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Grégoire Locqueville
purescript-gargantext
Commits
fbf4ae3d
Commit
fbf4ae3d
authored
Nov 30, 2020
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[document] styling fix
parent
3398c3db
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
10 deletions
+30
-10
Styles.css
dist/styles/Styles.css
+4
-0
Styles.sass
dist/styles/Styles.sass
+4
-0
Document.purs
src/Gargantext/Components/Nodes/Corpus/Document.purs
+22
-10
No files found.
dist/styles/Styles.css
View file @
fbf4ae3d
...
...
@@ -16,6 +16,10 @@
max-height
:
200px
;
overflow-y
:
scroll
;
}
#page-wrapper
.side-panel
.corpus-doc-view
.list-group
.list-group-item-heading
{
display
:
inline-block
;
width
:
60px
;
}
.simple-layout
{
height
:
100%
;
...
...
dist/styles/Styles.sass
View file @
fbf4ae3d
...
...
@@ -15,6 +15,10 @@
.annotated-field-runs
max-height
:
200px
overflow-y
:
scroll
.list-group
.list-group-item-heading
display
:
inline-block
width
:
60px
.simple-layout
height
:
100%
...
...
src/Gargantext/Components/Nodes/Corpus/Document.purs
View file @
fbf4ae3d
...
...
@@ -89,21 +89,28 @@ docViewCpt = R.hooksComponentWithModule thisModule "docView" cpt
R2.row
[
R2.col 12
[ H.h4 {} [ annotate doc.title ]
[ H.h4 {} [
H.span {} [
badge "title"
, annotate doc.title
]
]
, H.ul { className: "list-group" }
[ li' [
H.span {} [ text' doc.source ]
,
badge "source"
[ li' [
badgeLi "source"
,
text' doc.source
]
-- TODO add href to /author/ if author present in
, li' [
H.span {} [ text' doc.authors ]
,
badge "authors"
, li' [
badgeLi "authors"
,
text' doc.authors
]
, li' [
H.span {} [ H.text $ publicationDate $ Document doc ]
,
badge "date"
, li' [
badgeLi "date"
,
H.text $ publicationDate $ Document doc
]
]
, badge "abstract"
, annotate doc.abstract
, H.span {} [
badge "abstract"
, annotate doc.abstract
]
, H.div { className: "jumbotron" }
[ H.p {} [ H.text "Empty Full Text" ]
]
...
...
@@ -118,12 +125,17 @@ docViewCpt = R.hooksComponentWithModule thisModule "docView" cpt
, setTermList
, text }
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" }
setTermListOrAddA ngram Nothing = addNewNgramA ngram
setTermListOrAddA ngram (Just oldList) = setTermListA ngram <<< replace oldList
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.
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
type LayoutProps = (
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment