mirror of
https://github.com/irislib/iris-messenger.git
synced 2024-09-20 10:06:32 +00:00
"looking up message" transition and less flicker
This commit is contained in:
parent
7c1cd5b273
commit
0f02071738
@ -2048,6 +2048,16 @@ form.public {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.retrieving .text {
|
||||
opacity: 0;
|
||||
transition: opacity 1s;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.retrieving .text.visible {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.retrieving button {
|
||||
padding: 5px 15px;
|
||||
}
|
||||
|
@ -391,12 +391,10 @@ class PublicMessage extends Message {
|
||||
: ''}"
|
||||
>
|
||||
<div class="msg-content">
|
||||
${this.state.retrieving
|
||||
? html`<div class="retrieving" style="display:flex;align-items:center">
|
||||
<div style="flex:1">Looking up message...</div>
|
||||
<div>${this.renderDropdown()}</div>
|
||||
</div>`
|
||||
: ''}
|
||||
<div class="retrieving" style="display:flex;align-items:center">
|
||||
<div class="text ${this.state.retrieving ? 'visible': ''}">Looking up message...</div>
|
||||
<div>${this.renderDropdown()}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>`;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user