I'm working on a Node-RED dashboard and struggling to make the layout responsive across different screen sizes and devices. I want the dashboard to adapt seamlessly whether it's viewed on a smartphone, tablet, or desktop.
I've tried adjusting the grid settings and group widths, but the layout still doesn’t scale as I’d like. Does anyone have suggestions or best practices for ensuring that a Node-RED dashboard is fully responsive?
Thanks in advance for any help!
see the image. It is not showing any responsiveness at all.
Hi @shamim237 - welcome to the Node-RED Forums and thanks for your question.
I'm going to assume you're using the latest Dashboard, rather than the deprecated Dashboard, although the colour of the navigation header suggests you may be using the latter,.
Dashboard 2.0 Solution:
Dashboard 2.0 has multiple options for Layouts, including "Grid", which is responsive by default, so the ui-template you're building in will automatically scale to the width of the screen.
Quick hint on @media breakpoints. It is much better to use em measures rather than px in breakpoints since it means that users who zoom in or out will still get sensible switchovers.
Here is my note-to-self for remembering reasonably standard breaks: