-
Notifications
You must be signed in to change notification settings - Fork 671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Topic is cut off #276
Comments
It would probably deserve a different issue, but clicking on the topic should allow you to edit it, not view it. |
@TheSonAlsoRises Yes, make another issue. But that's a brilliant idea, actually. (although highly unlikely anyone will find the time to do it anytime soon) Regarding this issue, yeah, thanks for the issue, @pugabear, we will look into this. Current thought is about making it show when you over over it, but that would take a bit of work making it look nice with our current CSS. But I'll leave this here for if it ever gets done. |
Glad I searched after wanting the topic bar to expand instead of #515 filling out the title attribute solution. I was about to create a duplicate issue. Alternatively, it doesn't have to expand on desktop browsers. Textual (yes, I'm being that guy again) shows the whole topic in a semitransparent div on top of the chat—or does in the nox theme, at least. It works quite well, and shows the whole thing with formatting. |
Mind sharing a screenshot @dgw? |
Something like this, @MaxLeiter? Here's a grab from At the very least, I think that's a good sort of target for the look when expanded (buggy line breaking notwithstanding), if The Lounge sticks with the single-line topic bar and expands it on hover/tap. (That just made me think about how hovering isn't really a thing on mobile.) |
Also worth noting is the channel mode being nicely displayed after the title |
This looks nice. I think a good idea for lounge would be to display it the same but on mouse over (since we tend to have bigger fonts and everything). Clicking on it could automatically set the input box to |
If someone wants to jump on this, it should be possible to make topic scrollable by making the |
I would like to have it expand/collapse on click, with a max height, then scroll the rest if too big. But yeah, what @xPaw describes would be an acceptable first step if someone wants to try something simpler than my solution. |
I played around with this and came up with this custom css:
Tested on morning theme on master (5a9233c). Explanation:
Known issues:
I'm no CSS guru, but maybe this can act as a base to work with for someone with more knowledge. |
New version (new comment, so you guys get notified). This has the issues fixed, please test ❤️ (I guess the
Looking good on mobile too (tap header to expand, tap elsewhere to collapse): |
That looks like a good start. It has some weird side effects though. Not sure if they were introduced recently. I will see if I can take your css and fix the issues. |
Spent some time playing with this this evening and I have a pitch. As this is a interface-design-heavy feature, I'd love to get the interface critique out of the way before implementation. So please comment if you have concerns. Without more ado... there are two high-level changes:
This means there are four layouts: large-screen, large-screen-expanded, small-screen, and small-screen-expanded. Below are mocks showing what each of these states would (roughly) look like: large-screen large-screen-expanded small-screen small-screen-expanded |
I like the version for the desktop. (Note that's the same answer I gave on IRC... just dumping this also here to keep a record) |
I agree with @brunnre8. I'll also add that other chat apps seems to do a similar thing. For example, Slack has a topic on desktop, but not on mobile, to conserve space. I'd vote to keep the current behavior on any screen size, and when clicked/tapped, go to a new line and display in full. Even on desktop, I think expanding like the small-screen-expanded would look better, especially with long channel names and long topic lines. Makes the best possible use of the space in every situation with no special cases. |
Seems worth playing with to save the row. I'm worried about cases when the topic is scrunched small enough to be barely-or-not-at-all visible. Like I only get a few words in the topic of
I don't think we should do this, even though it would be nice to have the exact same interface on both. The problem is the jumping text. On mobile the jumping text will probably be only a little annoying. But on desktop I think it would be more significant because (1) double-clicking to edit the topic gets weird, and (2) selecting some text in the topic will be a surreal experience as the text runs from you. Not the worst thing but I don't think it'd be worth the benefit of keeping the experience between mobile and desktop the same in this case. |
If a topic is too long, I can't see the entire thing on the top bar. http://screencloud.net/v/6EhZ
I would suggest making it expand when you hover over it or click on it.
The text was updated successfully, but these errors were encountered: