Commit 18209c45 authored by Fabien Manière's avatar Fabien Manière

fix position of the completions boxes (graph search + sharing users), adding shadow

parent dcb600e2
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -95,7 +95,7 @@ shareNodeInnerCpt = here.component "shareNodeInner" cpt ...@@ -95,7 +95,7 @@ shareNodeInnerCpt = here.component "shareNodeInner" cpt
[ inputWithAutocomplete' { boxAction: shareAction [ inputWithAutocomplete' { boxAction: shareAction
, dispatch , dispatch
, state , state
, classes: "d-flex align-items-center" , classes: "share-users-completions d-flex align-items-center"
, autocompleteSearch , autocompleteSearch
, onAutocompleteClick , onAutocompleteClick
, text , text
......
...@@ -64,7 +64,7 @@ nodeSearchControlCpt = here.component "nodeSearchControl" cpt ...@@ -64,7 +64,7 @@ nodeSearchControlCpt = here.component "nodeSearchControl" cpt
{ autocompleteSearch: autocompleteSearch graph { autocompleteSearch: autocompleteSearch graph
, onAutocompleteClick: doSearch , onAutocompleteClick: doSearch
, onEnterPress: doSearch , onEnterPress: doSearch
, classes: "" , classes: "filter-results-completions"
, state: search , state: search
, placeholder: "filter and select terms here..." , placeholder: "filter and select terms here..."
} }
......
...@@ -267,7 +267,7 @@ completionsCptCpt = here.component "completionsCpt" cpt ...@@ -267,7 +267,7 @@ completionsCptCpt = here.component "completionsCpt" cpt
-- State -- State
completions' <- T.useLive T.unequal completions completions' <- T.useLive T.unequal completions
let className = "completions " <> (if completions' == [] then "d-none" else "") let className = "completions shadow" <> (if completions' == [] then "d-none" else "")
-- Render -- Render
pure $ pure $
......
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
// Custom autocomplete (need UI/UX rework) // Custom autocomplete (need UI/UX rework)
.input-with-autocomplete { .input-with-autocomplete {
.completions { .completions {
position: fixed; position: absolute;
max-height: 300px; max-height: 300px;
overflow-y: scroll; overflow-y: scroll;
width: 300px; width: 300px;
...@@ -107,6 +107,13 @@ ...@@ -107,6 +107,13 @@
} }
} }
} }
&.share-users-completions {
.completions {
top: 37px;
max-height: 200px;
width: 420px;
}
}
.b-icon-button { .b-icon-button {
margin-left: 10px; margin-left: 10px;
} }
......
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