Aug 09, 2020, 01:18 AM

News:

Keep an eye on your notifications page. It can get huge.


Aligning Board Stats

Started by Skhilled, Feb 21, 2019, 07:45 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Skhilled

I'm having a problem aligning the stats in RC1. It works fine if you have posts/topics in the boards but doesn't line up if there are none. It also does the same with the redirect board. Here's a board with 2.0.15 which looks fine:

https://skhilled.com/smftest/index.php

And here RC1:

https://skhilled.com/smfrc1/index.php

Bigguy

I have the same problem here and I do believe I posted about it either on SMF or GH. Not sure which.

Skhilled

I've been playing with it for about a week or so and can't get it to line up correctly. I also have the same problem with the topics board...much harder to line them up but those will move.

lurkalot

Think it uses the last post column set at a width of 30% to push that over to the left, but obviously when you have no posts, or use a redirect then there is no last post. So it shifts to the right.

No sure if you can see how that is handled in the 2.0 version of the theme, but it might give you a clue.

lurkalot

Quote from: Skhilled on Feb 21, 2019, 08:25 AMI've been playing with it for about a week or so and can't get it to line up correctly. I also have the same problem with the topics board...much harder to line them up but those will move.

Actually Steve.

index.css around line 3771

Find and comment out

.hidden {
display: none;
}

And see what happens.  ;)

Bigguy

@lurkalot Does that just effect that area. I just mean   .hidden is pretty general in terms of what it means. :dontknow :hwhat

live627

It affects more than just that.

Idea:

.hidden:not(.lastpost)

lurkalot

Quote from: Bigguy on Feb 21, 2019, 09:13 PM@lurkalot Does that just effect that area. I just mean   .hidden is pretty general in terms of what it means. :dontknow :hwhat

I don't know, I was just trying to find clues which might help Steve solve his problem.  ;)

Bigguy

Ohok, I thought you had tried it.

Skhilled

Feb 22, 2019, 07:52 AM #9 Last Edit: Feb 22, 2019, 08:00 AM by Skhilled
Yes! Finally it lives! LOL Thanks a lot, Mick!

https://skhilled.com/smfrc1/index.php

Quote from: live627 on Feb 22, 2019, 01:01 AMIt affects more than just that.

Idea:

.hidden:not(.lastpost)

Ok, I changed it to this:

.hidden:not(.lastpost) {

display: none;

And that works too.

Bigguy

I will have to do that here as well.

lurkalot

Well I was kinda looking in the right place at least. lol..  But if it does control other things then you'd best use live627's solution.  At least we got there between us.  :rgton

Skhilled

Yes, I tried his as well. And left it that way because of that. Now, I'll make a copy of the default that will already include that code and make the others off of it.

Skhilled

Now, what's the best way to align them on the topic page?

https://skhilled.com/smfrc1/index.php?board=1.0

Bigguy

I played around a bit and made no progress, lol.