Commit 306f656b authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[visio-frame] fix visio frame width/height

parent 90b98be0
Pipeline #2377 failed with stage
......@@ -1029,6 +1029,10 @@ select.form-control {
top: 6px;
}
.jitsi-iframe {
height: 40em;
}
.range {
width: 400px;
/* some space for the right knob */
......
This diff is collapsed.
......@@ -137,10 +137,13 @@ nodeFrameVisioCpt = here.component "nodeFrameVisio" cpt
case toMaybe (R.readRef ref) of
Nothing -> pure unit
Just r -> do
api <- JM.jitsiMeetAPI (WURL.host url) { parentNode: r, roomName: frame_id }
api <- JM.jitsiMeetAPI (WURL.host url) { parentNode: r
, roomName: frame_id
, width: "100%"
, height: "100%" }
here.log2 "[nodeFrameVisio] api" api
pure $ H.div { ref } [ H.text $ WURL.host url ]
pure $ H.div { ref, className: "jitsi-iframe" } [ ]
type LoadProps = ( nodeId :: Int
, session :: Session )
......
......@@ -9,7 +9,9 @@ foreign import data JitsiMeet :: Type
type Jitsi =
{ parentNode :: DOM.Element
, roomName :: String }
, roomName :: String
, width :: String
, height :: String }
foreign import _api :: JitsiMeet
foreign import _jitsiMeetAPI :: EffectFn2 String Jitsi JitsiMeet
......
......@@ -183,3 +183,7 @@ select.form-control
height: $spinner-size
left: $spinner-left-offset
top: $spinner-top-offset
.jitsi-iframe
height: 40em
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