Smarten chatbox styling
They now can take on any width (for example when the message is shorter), and the font is larger for emoji-only messages
This commit is contained in:
parent
cf926cd5b6
commit
e5a9ea5905
|
@ -14,7 +14,7 @@
|
|||
>
|
||||
<div class="chat-item-row">
|
||||
<div class="avatar"></div>
|
||||
<div class="chat-item">
|
||||
<div class="chat-item{message.attributes?.is_only_emojis ? ' only-emoji' : ''}">
|
||||
<p>{message.attributes?.message}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -56,11 +56,11 @@
|
|||
color: var(--chatbox-color);
|
||||
padding: 0;
|
||||
display: inline-block;
|
||||
width: calc(100% - 4rem);
|
||||
max-width: calc(100% - 4rem);
|
||||
border-radius: 0 1rem 1rem 1rem;
|
||||
}
|
||||
|
||||
.chat-item p{
|
||||
.chat-item p {
|
||||
word-wrap: break-word;
|
||||
overflow: hidden;
|
||||
font-size: 1.7rem;
|
||||
|
@ -68,6 +68,10 @@
|
|||
margin: 1rem;
|
||||
}
|
||||
|
||||
.chat-item.only-emoji p {
|
||||
font-size: 3rem;
|
||||
}
|
||||
|
||||
.chat-item-indicator:focus-within {
|
||||
background: var(--chatbox-indicator-background-focused);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue