Title: Long string as profile personal text looks weird Post by: alani123 on December 13, 2019, 10:17:50 AM I recently noticed that if a long string without spaces is entered in the personal text section of a profile, it looks weird next to long posts.
Example image of post: https://i.ibb.co/6PfZ6n3/image.png (https://i.ibb.co/6PfZ6n3/image.png) Also looks a little weird in the profile page as it makes the avatar section look as wide as the string. Example image of profile: https://i.ibb.co/n7BrkGz/image.png (https://i.ibb.co/n7BrkGz/image.png) I am sure there could be an easy fix for that, with CSS perhaps. For post pages at least, the following code would make it look much better, as with example in image below. Code: overflow-wrap: break-word; Example of post with above CSS: https://i.ibb.co/RBT8k2V/image.png (https://i.ibb.co/RBT8k2V/image.png) For the profile maybe: Code: word-break: break-all; Example image of profile with above CSS: https://i.ibb.co/svRhPpH/image.png (https://i.ibb.co/svRhPpH/image.png) Edit: also, it'd be better if the code had classes assigned to those because as it stands CSS can't select them so easily, especially in the profile page. But I'm no CSS wizard so don't just take my word for it. Others might have better advice. Also, I should point out that I'm not sure if my suggestions would create any unwanted side effects. One difference I notice if the CSS I mention above was to be added, is that, if the string is a cryptocurrency address, it can no longer be copied by double clicking one time as it used to work (at least that's how it is in FF), however clicking it thrice or selecting it whole will allow to copy it whole without any line breaks. Title: Re: Long string as profile personal text looks weird Post by: Rengga Jati on December 13, 2019, 10:32:37 AM Where is the profile link of this account? If you know, please share it! It will be very useful to access the account immediately.
Title: Re: Long string as profile personal text looks weird Post by: alani123 on December 13, 2019, 10:34:04 AM Where is the profile link of this account? If you know, please share it! It will be very useful to access the account immediately. https://bitcointalk.org/index.php?action=profile;u=1106100Title: Re: Long string as profile personal text looks weird Post by: AB de Royse777 on December 13, 2019, 10:49:32 AM Someone familiar with the forum interface can easily make it look better. All they need to do is to play with the text and put then where it looks better. I do not think the software has anything to do here.
Title: Re: Long string as profile personal text looks weird Post by: UserU on December 13, 2019, 11:15:53 AM Someone familiar with the forum interface can easily make it look better. All they need to do is to play with the text and put then where it looks better. I do not think the software has anything to do here. It's related to the CSS styling, part of the SMF software. Title: Re: Long string as profile personal text looks weird Post by: dzungmobile on December 13, 2019, 02:14:57 PM Not only personal text, but also the long texts in profile page expands to width of profile page. I don't say it's weird but somewhat non-standard. I suggest to have a fix width of profile page for all ranks or same width for each rank as what the forum already has rules for characters in signature.
Title: Re: Long string as profile personal text looks weird Post by: alani123 on December 14, 2019, 01:34:12 PM Not only personal text, but also the long texts in profile page expands to width of profile page. I don't say it's weird but somewhat non-standard. I suggest to have a fix width of profile page for all ranks or same width for each rank as what the forum already has rules for characters in signature. That is true and the CSS line of word-break: break-all; can actually also address that. In my image ago I tried to target only the personal text but caught them also and the results can be seen. I think it'd be ideal if all text was forced to wrap under a certain max width instead of it affecting the unset width... Title: Re: Long string as profile personal text looks weird Post by: nc50lc on December 15, 2019, 05:19:51 AM This will work but, break-word should also be used for the personal text and contact info in the profile page.
Not break-all because it will cut words even if there're spaces in the texts. It's quite easy to edit since both the table data for "personal text" and "summary" are under the class "windowbg", and the poster's profile in the threads are under class "windowbg" and "windowbg2". so adding word-break: break-word; to those two classes in the style sheet (https://bitcointalk.org/Themes/custom1/style.css) will 'fix' it. I haven't dived deeper for other possible elements that are under those classes but it works in my test. Title: Re: Long string as profile personal text looks weird Post by: LoyceV on December 15, 2019, 09:16:12 AM Am I the only one who doesn't think this is a problem? The user can easily add a space by himself to fix this (see this example (https://bitcointalk.org/index.php?action=profile;u=1903546)).
I don't think I've ever seen a user with an Ethereum address in their personal text make valuable posts. Just 3 earned Merit on a total of 943 posts proves my point So I don't really see the point of adjusting the forum software for this. Title: Re: Long string as profile personal text looks weird Post by: alani123 on December 15, 2019, 10:00:56 AM Am I the only one who doesn't think this is a problem? The user can easily add a space by himself to fix this (see this example (https://bitcointalk.org/index.php?action=profile;u=1903546)). Yes, it can be addressed by each user in their profile but that's not a solution. Also, if the char limit allows for such, I don's see why long strings shouldn't be in that text field. Spaces make addresses and links less useful. I don't think I've ever seen a user with an Ethereum address in their personal text make valuable posts. Just 3 earned Merit on a total of 943 posts proves my point So I don't really see the point of adjusting the forum software for this. Moreover, on your second point about valuable posts, I wouldn't consider the example I presented as a representative one for any reason. If from the forum's side all it takes is just a couple of lines of CSS, then I don't see why we shouldn't have a fix. It might not be a big deal or not widespread, but I'd take into account how easy it is to fix also, even if it's not super important. Edit: spelling |