Do not truncate link previews if viewport can fit more text
Fixes #1084
This commit is contained in:
parent
17978af710
commit
c62bc2fa35
@ -1129,15 +1129,20 @@ kbd {
|
||||
}
|
||||
|
||||
#chat .toggle-content .thumb {
|
||||
float: left;
|
||||
margin-right: 6px;
|
||||
max-width: 48px;
|
||||
max-height: 32px;
|
||||
}
|
||||
|
||||
#chat .toggle-text {
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
#chat .toggle-content .head,
|
||||
#chat .toggle-content .body {
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
}
|
||||
@ -1151,7 +1156,7 @@ kbd {
|
||||
}
|
||||
|
||||
#chat .toggle-content.show {
|
||||
display: inline-block !important;
|
||||
display: inline-flex !important;
|
||||
}
|
||||
|
||||
#chat .count {
|
||||
|
@ -9,10 +9,12 @@
|
||||
{{#if thumb}}
|
||||
<img src="{{thumb}}" class="thumb">
|
||||
{{/if}}
|
||||
<div class="toggle-text">
|
||||
<div class="head">{{head}}</div>
|
||||
<div class="body">
|
||||
{{body}}
|
||||
</div>
|
||||
</div>
|
||||
{{/equal}}
|
||||
</a>
|
||||
{{/preview}}
|
||||
|
Loading…
Reference in New Issue
Block a user