Here are a few buttons, 3 with default styling and 3 with border-radius: 50% and colour changes.
The button label shows what size it is - 1x1, 2x1 or 2x4.
- Perhaps foolishly, I expected a 1x1 or 2x2 button to be square, but it's rectangular. Why? Is there a way to configure the template so they will become square?
- If I try to make a button square by specifying 2 wide and 4 tall, it becomes almost square. Just sufficiently not square so that it looks wrong. On my browser, full screen it seems to be 283px wide by 310px high.
- If I drag my browser window to different widths, the button width scales but the height does not. This leads to some undesirable effects:
Starting off pretty slim 1
and getting progressively wider
2 Blank space appears to the right of the group.
3 Then it disappears
4 And comes back again.
At this point the sidebar leaps unrequested onto the page, further screwing up the buttons.
This is with @flowfuse/node-red-dashboard v1.16.0.
Summary of what seem to be issues:
A square button is portrayed as a rectangle.
The width of a button is responsive but the height is not.
The button font size is not responsive and in some representations it is allowed to overflow.
The sidebar is displayed at some screen sizes and not at others.
Once the sidebar has manifested itself, it does not go away again without clicking on the hamburger icon.
It does not seem viable to create a dashboard to use at different screen resolutions, or am I missing something fundamental?
Edit: It seems that one fundamental thing I missed is that changing border-radius from 50% to em or rem units changes the button from elliptical to a much nicer oval.