Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Icon size in the topic view
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 14, 2015 - 3:02 pm

Looking at the code as I have now been able to do it does look like we do not make any attempt to scale up an image that is smaller that the one you specify. The width you specify is treated as a max-width.

Of course this is really the right thing to do as scaling up images is not a great idea and also puts some strain on the browser page loading.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Alex T
Member
sp_UserOfflineSmall Offline
Dec 14, 2015 - 3:42 pm

Ike said
Did you try adding the CSS I posted up there in Post #5?

Yes, but it didn't scale.

The one that says admin is a 70px avatar.  The one below is 50px.  

Avatar
Alex T
Member
sp_UserOfflineSmall Offline
Dec 14, 2015 - 3:43 pm

Yellow Swordfish said
Looking at the code as I have now been able to do it does look like we do not make any attempt to scale up an image that is smaller that the one you specify. The width you specify is treated as a max-width.
Of course this is really the right thing to do as scaling up images is not a great idea and also puts some strain on the browser page loading.

This is already being done inside the topic view.  We set this up previously: https://simple-press.com/suppo.....opic-view/

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 14, 2015 - 3:57 pm

So if what you want to do once worked then it should still do so as we have done nothing to change the CSS or code around avatars. And we do not touch child themes during upgrades of course.

But I repeat what I said above AND what I said in that thread. The size argument in the avatar template function only sets a max-width rule not a width rule.

Bit if I add a width rule to:

#spMainContainer .spTopicPostSection .spPostUserAvatar img

and set the profile > avatars > width to the same size then I do get bigger avatars.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Alex T
Member
sp_UserOfflineSmall Offline
Dec 14, 2015 - 4:15 pm

Yellow Swordfish said
So if what you want to do once worked then it should still do so as we have done nothing to change the CSS or code around avatars. And we do not touch child themes during upgrades of course.
But I repeat what I said above AND what I said in that thread. The size argument in the avatar template function only sets a max-width rule not a width rule.
Bit if I add a width rule to:
#spMainContainer .spTopicPostSection .spPostUserAvatar img
and set the profile > avatars > width to the same size then I do get bigger avatars.

That is working in the topic post section.  I'm trying to do this the forum view section.  The section where you select you want to read.  

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Dec 14, 2015 - 5:17 pm

OK, so set your width in the function to 70px - As Andy says, this is a max-width, remove the rule I posted above and add this:

#spMainContainer .spForumTopicSection .spIconColumnSection .spRowIcon img {
    width: 70px;
}

Should work just fine I think? It's sometimes hard to tell without inspecting it to see what's actually going on..

Avatar
Alex T
Member
sp_UserOfflineSmall Offline
Dec 14, 2015 - 5:22 pm

Ike said
OK, so set your width in the function to 70px - As Andy says, this is a max-width, remove the rule I posted above and add this:

<br />

#spMainContainer .spForumTopicSection .spIconColumnSection .spRowIcon img {
    width: 70px;
}

<br />

Should work just fine I think? It's sometimes hard to tell without inspecting it to see what's actually going on..

Ahhh...I had tried that, but I didn't remove the previous one so it didn't work.  Works now!  

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Dec 14, 2015 - 5:39 pm

Good stuff! If the rows do start getting too tall the only other thing you could possibly do would be to give the last column (status icons) more width which would allow them to spread to more than one stack of icons. You would have to compensate by lowering the width of one of the other columns respectively i.e 5% extra width on the last column equals 5% less width on one of the others..

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625