Skip to content
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] Grid Layout #17

Open
JulienLecoq opened this issue Sep 15, 2024 · 2 comments
Open

[Feature Request] Grid Layout #17

JulienLecoq opened this issue Sep 15, 2024 · 2 comments

Comments

@JulienLecoq
Copy link

I think this could be cool to have a grid layout as it's a layout "often" used in GUI apps.

@nicbarker nicbarker changed the title Feature request: add a grid layout [Feature Request] Grid Layout Sep 15, 2024
@nicbarker
Copy link
Owner

@JulienLecoq Definitely agree! I think there's certainly a Grid and/or Table layout that would work well with the other features in clay.

For transparency around my priorities at the moment:

  1. Debug Tooling ([Feature] Debug Tools #15) - should ship today or tomorrow
  2. Zig bindings
  3. A "wrapping" container - think something like flex-wrap in CSS. This is pretty important as it blocks the creation of "rich text", clickable links in text paragraphs etc.
  4. Grid or table view

So likely it'll be a month or two before it starts to get looked at 🙂

@Greedquest
Copy link

I wrote an algorithm a few years ago for masonry layouts (grids where each element has fixed width but variable height, like a photo gallery with different aspect ratios ) that I haven't seen anywhere even in CSS: it solves a problem that if you have a particular ordering in mind (like search results, most relevant to least relevant), the algorithm CSS uses places the next object on the shortest column but that sometimes breaks the logical flow (see https://youtu.be/W91Wst6fMNU?t=447)

I don't know C, would it be at all useful to propose the algorithm in pseudocode or python?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants