Allow selecting of multiple maxweight signs#6589
Conversation
|
Could you add a video/screenshot? I think a openening-hours-form-like UI would make sense, with an 🗑️ icon button to the right, no? (After all, the sign is so big.) Maybe, the signs themselves could also be made smaller (again). The current size is due to in Material Design / Compose, the content paddings of all text inputs are so huge. Not sure if that default can be changed (to zero content padding, after all, the sign is already content padding enough). |
|
First steps in Compose, very nice! 👍 Note that Compose suffers somewhat from that it is very easy to over-indent the code. To mitigate this, one needs to deliberately think about what composables should go into a new composable function. For specific composables that shouldn't be public, well, they can be private in that file. Anyway, the structure should be the following:
|
I feel like having a list of potentially five, full sized signs would be very long. Though I guess such a case would be very rare. |
|
Screenshots look good! Although, maybe the signs really need to be made smaller again (by removing the content padding of the text fields, if possible). Also, note my previous comment. I see you haven't changed anything in this regard. |
My bad, missread the similar file names, should be good now? |
From my understanding that seems to be defined globaly (for all text fields) so this would modify many other forms. However I also think that more than 2 signs is exceptionally rare, so its probably ok if this rare case would use a bit more space right? Might be better if the more common case (single sign) stays easily readable. |
|
I can see you struggled with this one. On the other hand, it's your first dip into compose code. Anyway, there were too many things wrong with it, so I basically rewrote the whole thing. Would you kindly review the state the PR is in now? |
It's true, this is one of the reasons I created the |
|
Anyway, it's good to merge from my point of view, but please have a look at the PR before that. |
|
LGTM, cannot approve my own PR |



fixes #5803