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

Directory thumbnail frame are unformatted #10

Closed
olivierguillard opened this issue Jan 10, 2018 · 7 comments
Closed

Directory thumbnail frame are unformatted #10

olivierguillard opened this issue Jan 10, 2018 · 7 comments
Assignees
Milestone

Comments

@olivierguillard
Copy link

Hi Clément,

nice job, thanks ;-)

Would that be possible to have an option that would allow to format the thumbnails to a fixed height when displaying the directory.

Currently when firstname / name (which are the default attributes displayed under the photo) does'nt fit on one line, then some thumbnails are higher than other which reach to an uggly page displayed.

Nothing critical but a shame.

@coudot coudot added this to the 0.2 milestone Jan 11, 2018
@coudot
Copy link
Member

coudot commented Jan 11, 2018

Hello Olivier,

yes we could add an option.

You can fix it with a simple CSS rule in htdocs/css/white-pages.css, for example:

div.gallery img {
  width: 90px;
  height: 120px;
}

@coudot coudot self-assigned this Jan 11, 2018
@olivierguillard
Copy link
Author

olivierguillard commented Jan 11, 2018 via email

@coudot
Copy link
Member

coudot commented Jan 11, 2018

Strange as "img-responsive" is a class, not an HTML element. It should be instead:

div.gallery img.img-responsive {
width: 90px;
height: 120px;
}

Forcing width and height will force the ratio. You can force only one of them to keep original ratio.

@olivierguillard
Copy link
Author

olivierguillard commented Jan 11, 2018 via email

@olivierguillard
Copy link
Author

olivierguillard commented Jan 11, 2018 via email

@coudot
Copy link
Member

coudot commented Feb 20, 2018

I added options to truncate the title so it will not be displayed on more than one line.

We can also create an option to fix the image height.

@coudot
Copy link
Member

coudot commented Feb 20, 2018

Now we can also fix height and/or width. I think this is enough to close this issue.

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

No branches or pull requests

2 participants