geekhack

Site Announcements and Feedback => Announcements/Feedback/Suggestions => Topic started by: rowdy on Sun, 27 January 2013, 17:14:43

Title: Long usernames overlapping post title
Post by: rowdy on Sun, 27 January 2013, 17:14:43
I have noticed that long usernames seem to overlap the post titles.

Like here: http://geekhack.org/index.php?topic=36137.msg780019#msg780019

Given that there are no spaces or other breaking punctuation in the username, it would seem difficult to wrap it.

Is there anything else that can be done?  Like making the font a point or two smaller?

Or limiting the length of new usernames?

I know it is not a fixed-width font, so Wwwwwwww is much wider than Iiiiiiii, so that work-around might not work very far around.
Title: Re: Long usernames overlapping post title
Post by: SmallFry on Sun, 27 January 2013, 17:17:27
Or just don't make accounts to see pictures? :)) In all seriousness though, good thought. I thought about this before also.
Title: Re: Long usernames overlapping post title
Post by: mkawa on Sun, 27 January 2013, 20:52:10
i don't get this behavior in chrome with the default theme? personally, i'm hesitant to artificially constrain usernames unless people are really going overboard.
Title: Re: Long usernames overlapping post title
Post by: rowdy on Sun, 27 January 2013, 21:38:44
Ok.  I see this in Chrome with the Nostalgia theme.
Title: Re: Re: Long usernames overlapping post title
Post by: SmallFry on Sun, 27 January 2013, 22:33:14
Ok.  I see this in Chrome with the Nostalgia theme.
+2
Title: Re: Long usernames overlapping post title
Post by: metalliqaz on Sun, 27 January 2013, 22:56:18
i don't have the problem in Firefox
Title: Re: Long usernames overlapping post title
Post by: rowdy on Mon, 28 January 2013, 03:56:24
i don't have the problem in Firefox

With Nostalgia?

Nostalgia theme has a few other problems.
Title: Re: Long usernames overlapping post title
Post by: rknize on Mon, 28 January 2013, 10:32:22
I don't see this with any theme on Firefox or Chrome.  This is on Linux.  It's probably a difference in font rendering.
Title: Re: Long usernames overlapping post title
Post by: rowdy on Mon, 28 January 2013, 13:13:35
I'll try with Firefox/Windos 7 at work later on.

At home where I see the problem is using Chrome on Mac.
Title: Re: Long usernames overlapping post title
Post by: SmallFry on Mon, 28 January 2013, 13:20:16
I get it with Chrome on Windows.
(http://i.imgur.com/b0khGP6.png)
Oh and this one.
(http://i.imgur.com/WGPwbFr.png)
Title: Re: Long usernames overlapping post title
Post by: rowdy on Mon, 28 January 2013, 15:20:35
Firefox 18.0.1 on Windows 7 - the problem exists.

http://geekhack.org/index.php?topic=39688.msg780759#msg780759

(http://i.imgur.com/n3ySe6m.png)

And the same post with the default theme:

(http://i.imgur.com/HnXiKZi.png)
Title: Re: Long usernames overlapping post title
Post by: mkawa on Tue, 29 January 2013, 01:36:56
i think the best part about this is that you don't need an account to see pictures :D
Title: Re: Long usernames overlapping post title
Post by: rknize on Tue, 29 January 2013, 10:04:38
Lol...
Title: Re: Long usernames overlapping post title
Post by: fruktstund on Tue, 29 January 2013, 10:13:06
(http://puu.sh/1UrjJ)

The problem is there even with the default theme. His name isn't long enough though, so I had to add some asdasdasds.

Edit: you could add "width: 100%;" and "word-wrap: break-word;" to the CSS (line 1981 of index.css when using the Nostalgia theme for example) to force a word break. Will look better, but it's quite the manhandling of the user's name. :>
(http://puu.sh/1Urqo)
Title: Re: Long usernames overlapping post title
Post by: longweight on Tue, 29 January 2013, 10:14:38
I love the new theme so much more than nostalgia!
Title: Re: Long usernames overlapping post title
Post by: rowdy on Tue, 29 January 2013, 13:13:04
fruktstund's suggestion is probably the best so dar (didn't know CSS could do that, but I should have guessed).

99% of usernames are short and to the point - if someone insists on making such long names, then having them split for display purposes is not an unreasonable compromise.
Title: Re: Long usernames overlapping post title
Post by: The_Ed on Mon, 06 May 2013, 16:41:03
There is a problem in PMs where the long usernames are cut in half.

(http://i.imgur.com/VuhX5bE.png)

This was fixed for posts a while ago by shrinking the font.

Also - Why is "Asperger's... SQUIRREL!" broken onto 2 lines now? Why would the left column be shrunk to the point that 2 words can't fit? (Especially when both the words still clearly fit visibly.)
Title: Re: Long usernames overlapping post title
Post by: rknize on Mon, 06 May 2013, 16:47:06
There is a problem in PMs where the long usernames are cut in half.

Show Image
(http://i.imgur.com/VuhX5bE.png)


This was fixed for posts a while ago by shrinking the font.

Thanks, I'll fix this there as well.

Also - Why is "Asperger's... SQUIRREL!" broken onto 2 lines now? Why would the left column be shrunk to the point that 2 words can't fit? (Especially when both the words still clearly fit visibly.)

It's being wrapped because it doesn't fit now.  Lose the space and it will:

[attachimg=1]
Title: Re: Long usernames overlapping post title
Post by: The_Ed on Mon, 06 May 2013, 16:56:53
It fit before the signature changes. For 2 words to not fit is ridiculously small.

When are we gonna be able to use fullsize 184 pixel avatars? That way the left column won't be so incredibly small on a standard 1080p monitor.
Title: Re: Long usernames overlapping post title
Post by: rknize on Mon, 06 May 2013, 17:55:35
Two words can fit just fine.  Two rather long words (one in all caps) and an ellipse do not ATM.

As a far as avatar size...I guess you could start a thread about it and we'll see what the community says.
Title: Re: Long usernames overlapping post title
Post by: rowdy on Mon, 06 May 2013, 18:29:41
IMHO wrapping names is better than overlapping.

Not many people have that long names, anyway.
Title: Re: Long usernames overlapping post title
Post by: The_Ed on Mon, 06 May 2013, 19:36:54
It's even worse now...

(http://i.imgur.com/1ydtiR6.png)

EDIT: OH! But "Asperger's... SQUIRREL!" is fixed! Thanks! (You have no idea how much that bothered me...)
Title: Re: Long usernames overlapping post title
Post by: rknize on Mon, 06 May 2013, 19:38:12
The overlap problem should be gone.  That was an SMF template bug.  Right now, the site code scales long names down in an attempt to avoid the wrap.
Title: Re: Re: Long usernames overlapping post title
Post by: rknize on Mon, 06 May 2013, 19:49:27
It's even worse now...

Show Image
(http://i.imgur.com/1ydtiR6.png)


EDIT: OH! But "Asperger's... SQUIRREL!" is fixed! Thanks! (You have no idea how much that bothered me...)

I haven't changed anything today.  ;)
Title: Re: Long usernames overlapping post title
Post by: The_Ed on Mon, 06 May 2013, 19:56:29
I am on a computer at school right now, which means that the spacing is being rendered differently...
Title: Re: Re: Long usernames overlapping post title
Post by: rknize on Mon, 06 May 2013, 20:00:21
I am on a computer at school right now, which means that the spacing is being rendered differently...

Don't such inconsistencies drive you crazy as well?
Title: Re: Long usernames overlapping post title
Post by: The_Ed on Mon, 06 May 2013, 20:12:17
YES!! My custom text used to be Anal Retentive. In school I hated opening pages I made in another browser only to find it messed up...
Title: Re: Long usernames overlapping post title
Post by: rknize on Mon, 06 May 2013, 23:32:51
Added font scaling for long user names in PM template now as well.
Title: Re: Long usernames overlapping post title
Post by: WhiteFireDragon on Tue, 07 May 2013, 01:47:04
Ah so this was why my name shrunk...
Title: Re: Long usernames overlapping post title
Post by: rowdy on Tue, 07 May 2013, 04:02:32
SmallWhiteFireDragon ;)
Title: Re: Long usernames overlapping post title
Post by: rknize on Mon, 13 May 2013, 15:47:34
I tuned the algorithm so that it has finer-grained control over the font size.  We also gained a bit of space in the margin.  LMK is you see any goofy artifacts.
Title: Re: Long usernames overlapping post title
Post by: WhiteFireDragon on Mon, 13 May 2013, 19:08:36
testing : P

Mine is always long. In the past, for a few weeks, it was chopped off and some letters were on the next line. Seems ok now.
Title: Re: Long usernames overlapping post title
Post by: rowdy on Mon, 13 May 2013, 20:52:19
Some people might think the font is a bit small (from the original post I linked) ...

[attachimg=1]
Title: Re: Long usernames overlapping post title
Post by: rknize on Mon, 13 May 2013, 22:56:25
Righteous punishment, I say.
Title: Re: Long usernames overlapping post title
Post by: SmallFry on Mon, 13 May 2013, 23:00:07
That's cold man... cold. :))
Title: Re: Long usernames overlapping post title
Post by: rknize on Mon, 13 May 2013, 23:09:02
:)  I'll tweak the lower threshold on the next push.
Title: Re: Long usernames overlapping post title
Post by: The_Ed on Mon, 13 May 2013, 23:28:17
I say let his username be tiny. Tiny is better than broken onto 2 lines IMHO.
Title: Re: Long usernames overlapping post title
Post by: rowdy on Mon, 13 May 2013, 23:31:21
Righteous punishment, I say.

+1 :p
Title: .
Post by: esoomenona on Fri, 24 May 2013, 20:48:56
.
Title: Re: Long usernames overlapping post title
Post by: The_Ed on Fri, 24 May 2013, 20:58:12
It has, by shrinking the font.

And as Rknize puts it:

Righteous punishment, I say.

Title: .
Post by: esoomenona on Fri, 24 May 2013, 21:02:54
.
Title: Re: Long usernames overlapping post title
Post by: The_Ed on Fri, 24 May 2013, 21:19:37
I could've swore I saw it look better than this...

With respect to the margin, it might interest you to know that we had an even larger left margin until I shrank it down on April 29th to recover some dead space.  I had to put some of it back to fit the larger avatars, but it is still slightly narrower than it was originally (by 1em).

The margin is 1em smaller than it used to be, that's why.
Title: Re: Long usernames overlapping post title
Post by: rknize on Fri, 24 May 2013, 21:43:39
It's tricky to get right, since it renders differently on different browsers and platforms.
Title: Re: Long usernames overlapping post title
Post by: The_Ed on Fri, 24 May 2013, 21:45:21
IE renders fonts smaller than Chrome, at least for me.