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