Commit 3f39fafc authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FIX] frame fix for FF (need fix for chrom*)

parent 64621176
...@@ -78,9 +78,10 @@ li#rename #rename-a { ...@@ -78,9 +78,10 @@ li#rename #rename-a {
background-color: white; background-color: white;
border: none; border: none;
} }
#node-popup-tooltip .popup-container .istex-search.panel { #node-popup-tooltip .popup-container .frame-search.panel {
border: 1px solid rgba(0, 0, 0, 0.2); border: 1px solid rgba(0, 0, 0, 0.2);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
height: 600px;
width: 1300px; width: 1300px;
} }
......
...@@ -70,9 +70,10 @@ li#rename ...@@ -70,9 +70,10 @@ li#rename
justify-content: center justify-content: center
background-color: white background-color: white
border: none border: none
.istex-search.panel .frame-search.panel
border: 1px solid rgba(0,0,0,0.2) border: 1px solid rgba(0,0,0,0.2)
box-shadow: 0 2px 5px rgba(0,0,0,0.2) box-shadow: 0 2px 5px rgba(0,0,0,0.2)
height: 600px
width: 1300px width: 1300px
......
...@@ -23,12 +23,12 @@ searchIframes :: R.State Search ...@@ -23,12 +23,12 @@ searchIframes :: R.State Search
-> R.Element -> R.Element
searchIframes search@(search' /\ _) iframeRef = searchIframes search@(search' /\ _) iframeRef =
if isIsTex_Advanced search'.datafield then if isIsTex_Advanced search'.datafield then
H.div { className: "istex-search panel panel-default" } H.div { className: "frame-search panel panel-default" }
[ iframeWith "https://istex.gargantext.org" search iframeRef ] [ iframeWith "https://istex.frame.gargantext.org" search iframeRef ]
else else
if Just Web == search'.datafield then if Just Web == search'.datafield then
H.div { className: "istex-search panel panel-default" } H.div { className: "frame-search panel panel-default" }
[ iframeWith "https://searx.gargantext.org" search iframeRef ] [ iframeWith "https://searx.frame.gargantext.org" search iframeRef ]
else else
H.div {} [] H.div {} []
......
...@@ -83,8 +83,7 @@ searchFieldComponent = R.hooksComponent "G.C.S.SearchField" cpt ...@@ -83,8 +83,7 @@ searchFieldComponent = R.hooksComponent "G.C.S.SearchField" cpt
] ]
] ]
let footer = H.div {className: "flex-center"} let footer = submitButton {onSearch, search, session: props.session}
[submitButton {onSearch, search, session: props.session}]
pure $ panel body footer pure $ panel body footer
......
...@@ -154,7 +154,7 @@ uploadButtonCpt = R.hooksComponent "G.C.F.T.N.A.U.uploadButton" cpt ...@@ -154,7 +154,7 @@ uploadButtonCpt = R.hooksComponent "G.C.F.T.N.A.U.uploadButton" cpt
where where
disabled = case mFile of disabled = case mFile of
Nothing -> "1" Nothing -> "1"
Just _ -> "" Just _ -> ""
onClick e = do onClick e = do
let {name, contents} = unsafePartial $ fromJust mFile let {name, contents} = unsafePartial $ fromJust mFile
......
...@@ -179,18 +179,16 @@ formButton nodeType setNodeType = ...@@ -179,18 +179,16 @@ formButton nodeType setNodeType =
------------------------------------------------------------------------ ------------------------------------------------------------------------
------------------------------------------------------------------------ ------------------------------------------------------------------------
submitButton :: Action -> (Action -> Aff Unit) -> R.Element submitButton :: Action -> (Action -> Aff Unit) -> R.Element
submitButton action dispatch = submitButton action dispatch =
H.button { className : "btn btn-primary fa fa-" <> icon action H.button { className : "btn btn-primary fa fa-" <> icon action
, type: "button" , type: "button"
, style : { width: "50%" } , style : { width: "50%" }
, id: S.toLower $ show action , id: S.toLower $ show action
, title: show action , title: show action
, on: {click: \_ -> launchAff $ dispatch action} , on: {click: \_ -> launchAff $ dispatch action}
} }
[ H.text $ " " <> text action] [ H.text $ " " <> text action]
type Href = String type Href = String
......
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