-
Notifications
You must be signed in to change notification settings - Fork 26
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
Comments
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;
} |
Hi Clément,
you are right !
Not sure that this is good (I'm not a web developper) but looking at it I
had to add this to keep the image scale :
div.gallery img img-responsive {
width: 90px;
height: 120px;
}
thanks for the trick anyway,
…---
Olivier
2018-01-11 10:22 GMT+01:00 Clément OUDOT <notifications@github.com>:
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;
}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Af1LQ5qQ5EkKaZ2p2oY-U5cbH9fggHb0ks5tJdLEgaJpZM4RZ7Oe>
.
|
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. |
You are probably right.
However the scale is kept for thumbnails with this :
div.gallery img img-responsive {width: 90px;height: 120px;
}
Not with this :
div.gallery img img-responsive {width: 90px;height: 120px;
}
I also added this :
.img-responsive,.thumbnail>img,.thumbnaila>img,.carousel-inner>.item>img,.carousel-inner>.item>a>img
{
height:120px
}
As a fact, as said I humbly admit that I'm not a web dev, also I have not
tested on different displays (tablets, smartphone....) so I'm really
tinkering here, nothing more.
At this stage I'm only trying to set up a poc for a particular use case.
…---
Olivier
2018-01-11 11:27 GMT+01:00 Clément OUDOT <notifications@github.com>:
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.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Af1LQ4PdZlgXpBmNSbSRvWAApdiFXA4Cks5tJeIpgaJpZM4RZ7Oe>
.
|
Sorry, not with this :
div.gallery img.img-responsive {width: 90px;height: 120px;
2018-01-11 11:41 GMT+01:00 Olivier <github@guillard.nom.fr>:
… You are probably right.
However the scale is kept for thumbnails with this :
div.gallery img img-responsive {width: 90px;height: 120px;
}
Not with this :
div.gallery img img-responsive {width: 90px;height: 120px;
}
I also added this :
.img-responsive,.thumbnail>img,.thumbnaila>img,.carousel-
inner>.item>img,.carousel-inner>.item>a>img
{
height:120px
}
As a fact, as said I humbly admit that I'm not a web dev, also I have not
tested on different displays (tablets, smartphone....) so I'm really
tinkering here, nothing more.
At this stage I'm only trying to set up a poc for a particular use case.
---
Olivier
2018-01-11 11:27 GMT+01:00 Clément OUDOT ***@***.***>:
> 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.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#10 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/Af1LQ4PdZlgXpBmNSbSRvWAApdiFXA4Cks5tJeIpgaJpZM4RZ7Oe>
> .
>
|
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. |
Now we can also fix height and/or width. I think this is enough to close this issue. |
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.
The text was updated successfully, but these errors were encountered: