Browse Source

Fix reactions chip

pull/1456/head
Timothée Jaussoin 2 months ago
parent
commit
b47ae818d4
  1. 2
      app/Widgets/ChatActions/_chatactions_message.tpl
  2. 8
      public/theme/css/chip.css

2
app/Widgets/ChatActions/_chatactions_message.tpl

@ -20,7 +20,7 @@
</li>
<li class="reactions">
<div>
<p>{loop="$message->reactions->groupBy('emoji')"}<a class="chip" href="#">{autoescape="off"}{$key|addEmojis:true}{/autoescape}{$value->implode('truename', ', ')}</a>{/loop}</p>
<p>{loop="$message->reactions->groupBy('emoji')"}<a class="chip" href="#" title="{$value->implode('truename', ', ')}">{autoescape="off"}{$key|addEmojis:true}{/autoescape}{$value->implode('truename', ', ')}</a>{/loop}</p>
</div>
</li>
</ul>

8
public/theme/css/chip.css

@ -8,13 +8,17 @@
color: rgb(var(--movim-font));
background-color: rgba(var(--movim-element-action), 0.05);
transition: background 0.3s ease;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 80%;
}
*:not(p) > .chip:first-child {
*:not(p)>.chip:first-child {
margin-left: 0;
}
*:not(p) > .chip:last-child {
*:not(p)>.chip:last-child {
margin-right: 0;
}

Loading…
Cancel
Save