-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apparent layout change on small screens since 1.14.0 #1215
Comments
Hmmm, certainly not intentional - the padding/sizings look consistent, it appears the gauges themselves are rendering wider? |
Running two instances of node-red, both with only the dashboard installed, one with 1.14.0 and one with main from github, both running only the flow below, which is three text widgets, each 3x1, in three groups of size 3x1, in a PC I see That is both running at the same time with a page open on each in Edge browser. It can be seen that the latest main has significantly larger groups than 1.14.0, which means they do not fit on the tablet. There are no CSS overrides, only those three nodes and default theme. I notice that the colour of the text has changed too, was that intentional?
|
Not that I can recall - this will need some investigating |
PR opened to cover the text colour, the other piece is actually a feature change in: #1166 The theme you have should be switched to a "Row Height" of "Comortable (36px)" (default is 48px). We had some inconsistencies between Grid/Fixed layouts that were addressed there, and the "Comfortable" layout will give you what you had before for Fixed layouts. |
Unfortunately changing the row height to Comfortable did not appear to change anything. I restarted node-red and cleared the browser cache. Did you check it with my flow? |
Yes, otherwise I wouldn't have recommended it 😁 How many themes do you have locally, are you sure you're changing the correct one? |
For both of them I created new user directories and then ran node red for that directory. Then I installed just the dashboard and configured the text nodes. Did you try it on 1.14.0? The differences between the image you posted is not as great as I see between the two versions. |
So the height is working as I'd expect, but it does look like we have an issue with the card's width in Fixed views. No matter what I change the group width to, they're always rendering at |
I don't think this should have been closed by #1218, there are still unresolved issues. |
Correct - looks like GH auto-closed it because I'd mentioned it |
Just tracking this back, the changes came in here: https://github.com/FlowFuse/node-red-dashboard/pull/1166/files#r1725334033 We had an inconsistency that 1 unit of size in Grid/Notebook/Tabs was The solution here will be to change the width of the elements/groups to be slightly narrower. |
Whilst the above is true, there is still an underlying bug introduced whereby the group width is not taken into account at all when rendering the groups. Have the fix, not sure how it's changed though, as the line I need to remove is from 14 months ago |
I still don't think this is right. This flow has three groups of width 3. The first has three text nodes of size 1x1 and the other groups the text nodes are 3x1. In 1.14.0 this looks like this, which is correct I think In the latest it looks like
|
In 1.14.0 and below we actually had a bug where all groups were a fixed size, no matter what group size you set, which is what you've seen. I did fix that, but it appears there may be more at play: @gayanSandamal can you investigate this as a priority please? |
It seems to be OK in Grid mode, it is just Fixed where I see the problem. |
In which case, something changed between Thanks for the investigation - I've asked @gayanSandamal to take a look at this |
@joepavitt I approved this PR because the expected behavior was there |
I know, but as Colin has pointed out, and I can see with his shared flow, something is still broken as those groups should all be the same size, and tou can see in my shared screenshot that the unit sizing is inconsistent |
@joepavitt Sorry, I didn't see this message as I was checking the thread on my phone. I'm currently looking into this with the flow given by @colinl #1215 (comment) |
Great. Looking good now. |
Current Behavior
I am not sure if this is a regression or an intended change. I have a page with Layout Fixed and Theme Sizings settings:
Using version 1.14.0 of the dashboard, in a small window, and on a tablet, with three groups each 3 wide, it looks like
but with the current
main
branch (16th Aug 2024), in the same window size, it only shows two groups across, pushing the third off the screen.Is this an intended change, and if it is how do I restore the previous functionality please?
Expected Behavior
No response
Steps To Reproduce
No response
Environment
Have you provided an initial effort estimate for this issue?
I am not a FlowFuse team member
The text was updated successfully, but these errors were encountered: