I found a style bug that timeline scroller will overlap the start date in Chinese locale, maybe it’s a little longer than english and wrap to two line. The figures below are in two locale but in the same topic.
Thanks a bunch for reporting this. Would you mind giving us a bit more info on this? I tried reproducing using “translate page” on our try.discourse.org instance but couldn’t get a consistent repro of what you are seeing.
Some of the sections in this bug report topic might help with getting us a little more info so we can hopefully squash this bug.
It’s a little complicated to reproduce.
(in chinese locate)
- Prepare a long topic with many posts, for example 200 posts. And I don’t read it before, or read at very beginning position, e.g. first 10 posts.
- Enter the topic and scroll the scoller handle up. Then the scroller shows a button “Back”. Make sure the progress indicator is high enough, can inside the handle if scroller handle reaches top.
- Continue to scroll up, until the handle reach or very close to the start date.
And you will see the overlap.
I made an update to Discourse a couple weeks ago that attempts to handle this better:
This forces the timeline to only show 2 lines of text and hide the rest. So when text may be very long and/or the space available for the timeline is limited (narrow screens) it might look something like this:
This hides some or all of the date information on the handle in some cases, but prevents layout issues with the back button and avoids overlap with the date at the top of the timeline.
The date information on the timeline is a little redundant with the dates on posts themselves, so this seemed like a worthwhile tradeoff to avoid these issues where the layout breaks.