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

Ability to anchor a module #3858

Open
etwodev opened this issue Dec 31, 2024 · 1 comment
Open

Ability to anchor a module #3858

etwodev opened this issue Dec 31, 2024 · 1 comment
Labels

Comments

@etwodev
Copy link

etwodev commented Dec 31, 2024

Currently, modules aren't able to be anchored. This means that for monitors that have non-normal displays, its hard to align them.

E.g: Laptops with a notch or camera circle, you have to use a combination of padding right + left and be happy with a result that isn't perfect.

It would be nice if you could specify a module to be "fixed" or "anchored" e.g. I could put that spacer module in the center of all my modules, fix it, set it to the width of my notch, then I am able to easily add my modules to the left and right of that fixed, central spacer.

Example of what is currently required to do for implementing notches:

image

image

@etwodev etwodev changed the title Ability to anchor module Ability to anchor a module Dec 31, 2024
@etwodev
Copy link
Author

etwodev commented Jan 1, 2025

Alternatively, it would be useful to have some form of "flex-direction" for "module/left" and "module/right". So you can space left and right of your centrally aligned element (e.g. row-reverse). The same effect can be achieved without "anchoring". Currently its not possible to have "stable" centrally aligned elements.

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

No branches or pull requests

1 participant