-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[FEATURE_REQUEST] Center sections, make items the same size by truncating longer item description #250
Comments
Thanks very much for your suggestions :) REQ1: Makes sense, and I agree it looks off, so will update this to be centred :) But when there's only a single section (example), I think is should remain left aligned by default. Does that sound okay? REQ2: So with the item size, the text should actually be automatically truncated (and then visible on hover), is this not happening for you? But I agree it could do with some improvement. Do you mean width, or length of the item? I'll refresh my flex-box knowledge and try and improve this :) I'll try and get this implemented this week, or next weekend, and will update you here once done :) |
Thanks for the response 👍 @Lissy93 REQ1: That sounds totally fine when there is only one section :) REQ2: The text is visible on hover, however the text is not truncated. But it depends on how long it is allowed to be before being truncated. But i can see that it is enough long that the item increases in height and that creates inconsistency between the items in terms of length. |
Oh yeah, sorry I didn't realise you meant the description text, that makes sense now, thank you for the screenshot. I can easily truncate the description text, and your right, it would look much neater if all items were the same height. |
Just butting in here to say, I think the sections should have an option for centered, left (or right?) aligned when set to auto, regardless of the number of sections. So if you go over the max number of columns wide, the next sections would be centered below. I realise this probably makes it particularly complicated though 😂🤞 |
Hey @polhaghverdian So REQ2 is done in PR #261, and merged this evening. With REQ1, I realized this is actually already available, just switch to Horizontal layout. I know your issue was around centering content in the Auto layout, but I'm not sure how possible this is- Basically content is already centered by default, but since it's using The solution is to use Does this work for you? Don't forget that you can also specify your own styles, to display content however you like. Try this, update to V 1.8.5, switch to Horizontal layout, then add something like I've also added an option for you to specify number of columns for Auto layout, which you can then use to center content (e.g. set |
Hi @Lissy93 First of all thank you so much for taking the time and implemented my suggestions! REQ1: Is great i can see now that the items have the same size, due to truncating of the item descriptions. However i have just a small wish, could you perhaps add three dots after the truncated text or something similar to indicate that the text has been truncated? REQ2: I updated my docker container to v 1.8.5. I followed your alternative solution and used CSS to decrease the max-width of item-group-container and set it to 1200px. I also added colCount: 3 ( I have now three sections, thats why i choose 3 and not 2) in the configuration file to get the desired result. It works great. I have no complains :) |
P.s I really love your custom theme! When you've got your dashboard all setup, would you like to share it on the User Showcase? But no worries if not :) |
Closes Lissy93#250 Closes Lissy93#249 Signed-off-by: Bjorn Lammers <walkxnl@gmail.com>
Is your feature request related to a problem? If so, please describe.
No response
Describe the solution you'd like
REQ1: Centered sections should be applied when less then 4 sections is available. Otherwise the lists starts from left to right and is not centered on the screen.
REQ2: Make items the same size by truncating item description.
Priority
Low (Nice-to-have)
Is this something you would be keen to implement
No response
The text was updated successfully, but these errors were encountered: