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
4317fe08
Commit
4317fe08
authored
1 year ago
by
Fabien Manière
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spacing on the search form
parent
9ca3c95a
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
15 deletions
+26
-15
bootstrap-darkster.css
dist/styles/bootstrap-darkster.css
+0
-1
bootstrap-default.css
dist/styles/bootstrap-default.css
+0
-1
bootstrap-greyson.css
dist/styles/bootstrap-greyson.css
+0
-1
bootstrap-herbie.css
dist/styles/bootstrap-herbie.css
+0
-1
bootstrap-monotony.css
dist/styles/bootstrap-monotony.css
+0
-1
TreeSearch.purs
src/Gargantext/Components/TreeSearch.purs
+25
-9
_search.sass
src/sass/_legacy/_search.sass
+1
-1
No files found.
dist/styles/bootstrap-darkster.css
View file @
4317fe08
...
...
@@ -12254,7 +12254,6 @@ select.form-control {
.search-modal__results
{
height
:
14em
;
overflow-x
:
hidden
;
overflow-y
:
scroll
;
}
.dropdown-menu
{
...
...
This diff is collapsed.
Click to expand it.
dist/styles/bootstrap-default.css
View file @
4317fe08
...
...
@@ -12055,7 +12055,6 @@ select.form-control {
.search-modal__results
{
height
:
14em
;
overflow-x
:
hidden
;
overflow-y
:
scroll
;
}
.btn-secondary
,
...
...
This diff is collapsed.
Click to expand it.
dist/styles/bootstrap-greyson.css
View file @
4317fe08
...
...
@@ -11820,7 +11820,6 @@ select.form-control {
.search-modal__results
{
height
:
14em
;
overflow-x
:
hidden
;
overflow-y
:
scroll
;
}
/*# sourceMappingURL=bootstrap-greyson.css.map */
This diff is collapsed.
Click to expand it.
dist/styles/bootstrap-herbie.css
View file @
4317fe08
...
...
@@ -12068,7 +12068,6 @@ select.form-control {
.search-modal__results
{
height
:
14em
;
overflow-x
:
hidden
;
overflow-y
:
scroll
;
}
/*# sourceMappingURL=bootstrap-herbie.css.map */
This diff is collapsed.
Click to expand it.
dist/styles/bootstrap-monotony.css
View file @
4317fe08
...
...
@@ -12069,7 +12069,6 @@ select.form-control {
.search-modal__results
{
height
:
14em
;
overflow-x
:
hidden
;
overflow-y
:
scroll
;
}
/*# sourceMappingURL=bootstrap-monotony.css.map */
This diff is collapsed.
Click to expand it.
src/Gargantext/Components/TreeSearch.purs
View file @
4317fe08
...
...
@@ -69,20 +69,34 @@ treeSearchCpt = here.component "treeSearch" cpt where
pure $
B.baseModal
{ isVisibleBox: visible
, title: Just "
Tree Search
"
, title: Just "
Search in tree
"
, size: MediumModalSize
, modalClassName: ""
}
[ inputWithEnter { className: "form-control"
[
H.div
{ className: "input-group p-1" }
[
inputWithEnter { className: "form-control"
, autoFocus: true
, onEnter: submit inputRef query
, onValueChanged: R.setRef inputRef
, onBlur: R.setRef inputRef
, type: "value"
, defaultValue: ""
, placeholder: "Search..."
, placeholder: "Search
keys
..."
}
, treeSearchState {visible, query, sessions: sessions'} ]
,
H.div { className: "input-group-append"}
[
H.button { className: "input-group-text btn btn-light text-secondary"
, on: { click: submit inputRef query }
, type: "submit" }
[ H.span {className: "fa fa-search"} [] ]
]
]
, treeSearchState {visible, query, sessions: sessions'}
]
where
submit ref box _ = T.write_ (R.readRef ref) box
...
...
@@ -107,15 +121,17 @@ treeSearchWrapperCpt = here.component "treeSearchWrapper" cpt where
case session' of
Just s ->
pure $
R.fragment [
formSelect'
pure $
H.div {className: "search-modal__results-wrapper px-1"}
[
formSelect'
{ callback: \v -> T.write_ (Just v) session
, list: unSessions sessions
, value: s
} []
,
H.hr {}
,
if query' == "" then
H.div {className: "search-modal__results
"} [B.span_ "E
nter your search query..."]
H.div {className: "search-modal__results
mb-1"} [B.span_ "Please e
nter your search query..."]
else
treeSearchContainer {query: query', visible, session: s}
]
...
...
@@ -157,7 +173,7 @@ treeSearchRenderCpt = here.component "treeSearchRenderCpt" cpt where
results s = map searchResult s
where
searchResult sd = H.div
{ className: "
forest-layout__action
"}
{ className: "
result mt-1
"}
[
B.tooltipContainer
{ delayShow: 600
...
...
@@ -165,7 +181,7 @@ treeSearchRenderCpt = here.component "treeSearchRenderCpt" cpt where
, tooltipSlot: B.span_ $ show $ fromMaybe Home $ nodeTypeAppRoute sd.type (sessionId session) sd.id
, defaultSlot:
B.button
{ className: "
forest-layout__action
__button"
{ className: "
result
__button"
, callback: \_ -> do
T.write_ false visible
goToRoute $ fromMaybe Home $ nodeTypeAppRoute sd.type (sessionId session) sd.id
...
...
This diff is collapsed.
Click to expand it.
src/sass/_legacy/_search.sass
View file @
4317fe08
...
...
@@ -2,4 +2,4 @@
&
__results
height
:
14em
overflow-x
:
hidden
overflow-y
:
scroll
\ No newline at end of file
// overflow-y: scroll
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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