Support Forum
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.
YELLOW
SWORDFISH
|
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.
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/
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.
YELLOW
SWORDFISH
|
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.
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..
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!
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..
1 Guest(s)