Fix middle ellipsis float width
Fix edit animated emoji
This commit is contained in:
parent
56ce8020a9
commit
e0e9296dd0
@ -116,7 +116,8 @@ function getTextWidth(text: string, font: string) {
|
|||||||
//context.font = font;
|
//context.font = font;
|
||||||
const metrics = context.measureText(text);
|
const metrics = context.measureText(text);
|
||||||
//console.log('getTextWidth perf:', performance.now() - perf);
|
//console.log('getTextWidth perf:', performance.now() - perf);
|
||||||
return metrics.width;
|
//return metrics.width;
|
||||||
|
return Math.round(metrics.width);
|
||||||
}
|
}
|
||||||
|
|
||||||
export class MiddleEllipsisElement extends HTMLElement {
|
export class MiddleEllipsisElement extends HTMLElement {
|
||||||
|
@ -1712,7 +1712,8 @@ export class AppImManager {
|
|||||||
|
|
||||||
bubbleContainer = bubble.firstElementChild as HTMLDivElement;
|
bubbleContainer = bubble.firstElementChild as HTMLDivElement;
|
||||||
bubbleContainer.innerHTML = '';
|
bubbleContainer.innerHTML = '';
|
||||||
bubbleContainer.style.marginBottom = '';
|
//bubbleContainer.style.marginBottom = '';
|
||||||
|
bubbleContainer.style.cssText = '';
|
||||||
|
|
||||||
if(bubble == this.firstUnreadBubble) {
|
if(bubble == this.firstUnreadBubble) {
|
||||||
bubble.classList.add('is-first-unread');
|
bubble.classList.add('is-first-unread');
|
||||||
|
@ -1009,6 +1009,8 @@ $bubble-margin: .25rem;
|
|||||||
&.is-message-empty {
|
&.is-message-empty {
|
||||||
.message {
|
.message {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
/* position: relative;
|
||||||
|
width: max-content; */
|
||||||
bottom: .1rem;
|
bottom: .1rem;
|
||||||
right: .2rem;
|
right: .2rem;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
@ -1024,6 +1026,7 @@ $bubble-margin: .25rem;
|
|||||||
padding: 0 2.5px;
|
padding: 0 2.5px;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
pointer-events: all; // show title
|
pointer-events: all; // show title
|
||||||
|
white-space: nowrap;
|
||||||
|
|
||||||
.inner {
|
.inner {
|
||||||
display: none;
|
display: none;
|
||||||
@ -1063,6 +1066,7 @@ $bubble-margin: .25rem;
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
padding: inherit;
|
padding: inherit;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user