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
connect message spacing fix #1259
Conversation
|
Hmmm I think |
|
Gotcha, I'll adjust styling for @benhalpern What are your thoughts on |
|
For normal text we should not have scrolling and we should prefer to break words. I'm not totally sure about #1257 but don't see it as a critical issue to fix. Long words should be broken. I'm not sure about the details on how to do that exactly. Horizontal scrolling should only apply to e.g. |
|
Somehow the way Firefox handles After a lot of tinkering around, my hunch is that the problem of the |
width assertions
|
I just made some changes to the doc above and updated behavior! Focused on asserting width caps to prevent squeezing of other elements. |
|
@benhalpern Just a progress update. All the changes I made are in css and mostly concerns adding a lot of min and max widths and flexbox to prevent too much squeezing and stretching of elements. One major change is how additional content like user details and articles appear on mobile:
Let me know your thoughts on this when you get the chance to see and go through it. |
What type of PR is this?
Description
It seems like content in
<code>and<pre>took precedence over other HTML elements in Connect. Rather than using the previous approach and forcing breaks in the line, I have addedwidthassertions in CSS to prevent the channel list on the left and the channel content on the right from being squished. The code blocks and messages are capped and adjust to the opening and closing of content on the right.One notable change I have made is that in mobile, is that when right content is opened, rather than pushing all others to the left, I decided to overlay it on top of the chat preventing a horizontal scroll from appearing on mobile pages.
Related Tickets & Documents
resolves #1256 and resolves #1257
Mobile & Desktop Screenshots/Recordings
Previous behavior in #1256 and #1257
Current behavior (desktop and tablet):
Firefox word-break:
Current behavior (mobile):
Added to documentation?
What gif best describes this PR or how it makes you feel?