Like many others, I had to migrate my 1.0 dashboard to 2.0. In Dash 1.0, we had a 1x1 widget with a horizontal size of 48px and a vertical size of 48px, creating a square. This allowed me to find a compromise between PC and smartphone screens.
Why, in Dash 2.0, with a "Fixed" Layout and a default Theming > Row Height of 48px (the same settings as Dash 1.0), did you add flexibility below 576px?!
I understand that Dash 2.0's strength lies in its flexibility (Grid, Notebook, or Tabs modes), but please allow us to have 100% fixed pixels in "Fixed" mode at any screen width!
A 1x1 widget (48px x 48px, or "(where our default row height is 45px)" as seen in the manual)) must be square, not a short or long rectangle. I can't do anything with this! We're going from 4 to 3 columns for the same group width. 1x1 widgets are rectangular, or even very rectangular, depending on the screen width which isn't right.
So I'm racking my brain trying to optimize the widget's fill as precisely as possible, but it's going to overflow or have a large useless gap when going from 3 to 4 columns, which we didn't ask for!
Please make the "Fixed" x-column mode truly fixed, like in Dash 1.0 with 1x1 squares, not rectangles!
See the comment at the start of the documentation for Fixed layout
" Note: This layout still needs work to make it more flexible and practical, it is advised to use another layout for now."
@Steve-Mcl I don't see an Issue on github to document the requirements and implement Fixed layout. Should there be one?
@hotNipi What do you recommend I do to reduce the border on the right and left so that the widgets touch the edge of the group and distribute the widgets in the remaining space ? Gemini was unable to help me
Yes, I saw that section at the beginning of the documentation. The goal is to evolve things, or rather, to offer support identical to that of Dash 1.0 for those who, like me, manage complex dashboards and have to rewrite everything… and who struggle to manage flexibility.
Padding provides several valuable features, especially in terms of readability, and ignoring it is not recommended. However, the size can be easily changed.
@hotNipi one last thing to conclude this Dash 1.0 like: Do you think it is possible to do:
by clicking on the group name or something like that?
And there, you will be the sun of my day
That should be dashboards functionality out of box.
Anyway, I tried and yes it is possible to do.
But I am already somebody's sun and that is not subject of change.
Being a sun just alone doesnt pay any of the bills. So I don't share full solution.
Find my post about how to add icons to card header.
Examine.
You'll need one per group.
Icon can be clickable.
On click change the state. (boolean "opened")
With that state change also change the icon . "mdi-menu-up" -> mdi-menu-down (and vice versa)
As soon as I add a dropdown node, it breaks the functionality !?
I need to disable all the "collapse/expand ui-group" templates present for each group on the flow Otherwise, I cannot use the collapse/expand functionality at the same time as dropdown ...I must have messed up somewhere ?
I don't have computer to check but if the drop-down uses same icon - mdi-menu-up, then I'd guess it may break the thing easily. Means that the CSS must be made more specific.