Avatar ratio

acmalko
Topic Author
Posts: 6
4 years 9 months ago #2482 by acmalko
Avatar ratio was created by acmalko
Hi,
thanks for your job.

I'm using your great shoutbox and Community Builder.
May I suggest you to modify your tmpl/default.php file in a way to have a good ratio for avatars?
if ($avatar != 'none')
{
	$style .= '
	.jjshoutbox .shout-header {
		height: auto;
	}
	.jjshoutbox .avatar img {
		margin-right: 5px;
		height: 30px;
		width: 30px;
	}';

TO
if ($avatar != 'none')
{
	$style .= '
	.jjshoutbox .shout-header {
		height: auto;
	}
	.jjshoutbox .avatar img {
		margin-right: 5px;
		height: 30px;
		width: auto;
	}';

I'm a beginner so you have surely a better idea to respect image ratio or a good reason to have written it like it is.

Please Log in or Create an account to join the conversation.

Lodder
Lodder's Avatar
Posts: 1171
4 years 9 months ago #2483 by Lodder
Replied by Lodder on topic Avatar ratio
Hi acmalko,

I did this so that all avatar would be square, thus the shoutbox headers would be the same.

If you'd like to change it, you're more than welcome to create a Template Override.

Regards,
Lodder

Please Log in or Create an account to join the conversation.

acmalko
Topic Author
Posts: 6
4 years 9 months ago #2484 by acmalko
Replied by acmalko on topic Avatar ratio
Thanks...;)

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum