-
Notifications
You must be signed in to change notification settings - Fork 691
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
Do not truncate link previews if viewport can fit more text #1293
Conversation
Damn it. |
635d934
to
ff6b22d
Compare
@astorije fixed with flexbox. |
client/css/style.css
Outdated
@@ -1129,15 +1129,21 @@ kbd { | |||
} | |||
|
|||
#chat .toggle-content .thumb { | |||
float: left; | |||
display: flex; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this necessary at all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How else would you do it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant, this would only apply to its children, which .thumb doesn't have any, no?
client/views/msg_preview.tpl
Outdated
@@ -8,11 +8,15 @@ | |||
{{else}} | |||
{{#if thumb}} | |||
<img src="{{thumb}}" class="thumb"> | |||
<div class="toggle-text"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably worth rendering this div whether or not the thumb appears for consistency sake.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do
ff6b22d
to
40bd949
Compare
40bd949
to
c62bc2f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…ncate Do not truncate link previews if viewport can fit more text
Fixes #1084.
float: left
on the thumbnail image pushed text, but did not increase container width.Before:
After: