Hi,
I am trying to create dashboard that is responsive to the window/screen size.
I have a css template where I modify the group size to be 95% of the screen width
.nr-dashboard-theme ui-card-panel {
width:95%;
}
So if I make the window wider, the group width adapts to the width of the window (see green border)
However, the group contents stay the same (see yellow border)
I tried to modify the card-container class but it didn't work
.nr-dashboard-cardcontainer {
border: 1px solid yellow;
width:95%;
}
How can I make the group contents to be responsive as well?
Has anyone tried to do something similar?
Many thanks in advance,
Daniel
Hello and welcome.
It is asked many times in different manner but I haven't seen any story of success. It's a figh with implementation which is not meant to be responsive in freely chooseable manner. That's the main reason why almost every time there will be an advise to make your dashboard from scratch or use uibuilder or try flexdash.
But you may try.
Maybe this will be interesting then
Sometimes the default layout just doesn't do the trick. And we have been agreed with it as there is not much to do with it.
Well, I was forced a bit to think again ...
There isn't too much but it may open some possibilities to play with it.
[{"id":"4e7e0d90ee7aa1ad","type":"ui_template","z":"bf0d83d32eec75c2","group":"674712f8d915bcc0","name":"A bit different layout","order":7,"width":0,"height":0,"format":"<style id='different-layout'>\n .masonry-container {\n position: relative;\n…
2 Likes
Thanks for your quick reply.
I am quite new to Node-red and css so I have lots to learn
I've heard about uibuilder but never had the time to play with it. Never heard of flexdash.
Thanks for the link
system
Closed
3 June 2023 15:39
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.