Skip to content

feat: responsive grid layout and alphabetical sorting for list flags - #561

Merged
kaifcodec merged 2 commits into
mainfrom
feat/responsive-grid-module-listing
Aug 16, 2026
Merged

feat: responsive grid layout and alphabetical sorting for list flags#561
kaifcodec merged 2 commits into
mainfrom
feat/responsive-grid-module-listing

Conversation

@kaifcodec

Copy link
Copy Markdown
Owner
  • Display user and email module listings (-lu and -le) in a responsive rich Table grid filling terminal size
  • Render module items inside panels with inner Table grids for pixel-perfect vertical column alignment
  • Sort categories and site modules inside each category 100% alphabetically
  • Self-adapt panel height for large categories to eliminate massive vertical gaps and scrolling

@kaifcodec kaifcodec added the enhancement New feature, request, code improvements/upgrade, performance boost label Aug 9, 2026
@kaifcodec

Copy link
Copy Markdown
Owner Author

@brunolm and @kristoisberg try this list layout once and let me know how it looks and whether you think it can be improved or not, right now, I somehow managed to make it look good and level with each column but as the module counts are different in each category it was hard to structure and level them side by side.

@kristoisberg

Copy link
Copy Markdown
Collaborator

I tried it out and the responsiveness works great between 2 and 3 columns. I wonder whether a single-column layout would be beneficial or not, e.g. in case the user has multiple side-by-side terminals open, so each one is very narrow. Currently, the two-column layout struggles with rendering loud email modules, but it also fits a lot more information than a single-column layout would.

image

Also, if a category in one column is significantly longer than the category next to it, it creates a large area of empty space under the other one. Did you try out any options where the columns wouldn't need to be at the same level?

@kaifcodec

Copy link
Copy Markdown
Owner Author

@kristoisberg Regarding the single-column view, yeah, @VamatoHD mentioned it earlier via Discord. I’m planning to make it fallback to a single column whenever the terminal width is under 70.

As for the empty space issue, I tried a few ways to clean that up, but solving it broke the alphabetical sorting layout. If you have any ideas on how to handle the extra spacing while preserving the alphabetical order, feel free to share or drop a suggestion!

@json-hunter07

Copy link
Copy Markdown
Collaborator

@kaifcodec I think keeping alphabetical order and filling up those spaces will not be possible, both of them are not likely possible in the same time.

@kaifcodec
kaifcodec merged commit c333983 into main Aug 16, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature, request, code improvements/upgrade, performance boost

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants