Hi, while searching the board for a sollution I came across this post. I do have the same issue, the buienradar shows a white bar at the right side.Lokonli wrote: ↑Tuesday 24 September 2019 18:17 yes, you can
First add a key to the block definition to be able to identify the frame:Then add the following to custom.css to set the width of the iframe:Code: Select all
frames.buienradar = { frameurl:"https://gadgets.buienradar.nl/gadget/zoommap/?lat=50.82535&lng=5.72597&overname=2&zoom=8&naam=6228CN&size=2b&voor=0", height: 360, //height of the block in pixels width: 10, scrollbars: false, refreshiframe:60000, forcerefresh: 2, key: 'test' }
Code: Select all
div[data-id='frames.test'] iframe { width: 325px !important }
When selecting width:10 there's no white bar anymore, but then the buienradar overview does not fit equally to the rest of the dash.
I tried you solution but the iframe seems not to respond to it, it will not get wider or smaller.
Also tried a different size (300x300) via the buienradar gadget, but then to much of the overview is cut-off (but the white bar is gone).
Using beta 3.5.2, has anything changed for this version?
my code: (snippet)
config.js
Code: Select all
var frames = {}
frames.buienradar = {
frameurl:"https://gadgets.buienradar.nl/gadget/zoommap/?lat=52.09083&lng=5.12222&overname=2&zoom=8&naam=utrecht&size=2&voor=1",
refreshiframe: 60000,
width: 12,
height: 185,
scrollbars: false,
forcerefresh: 1,
key: 'test'
}
}
custom.css
Code: Select all
/* Buienradar */
div[data-id='frames.test'] iframe {
width: 300px !important
}