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

Alignment of the grid-list's itens [QUESTION] #36

Open
brunonmelo opened this issue Jan 26, 2017 · 4 comments
Open

Alignment of the grid-list's itens [QUESTION] #36

brunonmelo opened this issue Jan 26, 2017 · 4 comments

Comments

@brunonmelo
Copy link

For what a saw, all itens inside the grid-tile are aligned on center, I try really hard to change the alignment but I count manage to change. The element that set the alignment is nested deep inside in the grid-list.
Is there a way to change this behavior? To set the alignment of the itens in the left or the right of grid-tile?

@edemirkan
Copy link

I am using the following ugly work around;
Add a class name to the md-grid-tile

<md-grid-tile class="grid-test-1">
</md-grid-tile>

and refer it in the global style.css file for left align ("flex-end" will provide right align)

.grid-test-1 > figure.mat-figure {
  justify-content: flex-start !important;
}

@brunonmelo
Copy link
Author

This could definitively do the trick, but, in my opinion, is far from the ideal.

I find out to be more practical to use bootstraps classes and not using the grid functionality, yet, at least for now

I going to wait until it's be a little more mature, but I will leave this as a suggestion of implementation. If we could positioning the itens inside the grid tile using some directive it would give a good power of customization to the developer.

@edemirkan
Copy link

Totally agree with your comments, but I think you need to open an issue on angular/material2 as this repo is just for the sample app.

@yuriyovych
Copy link

So we do not have a correct approach to align items in grid tiles?

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