improve message actions

This commit is contained in:
hippoz 2023-08-09 23:23:47 +03:00
parent 97e5bfbe5c
commit aa2085050a
Signed by: hippoz
GPG key ID: 56C4E02A85F2FBED

View file

@ -32,9 +32,8 @@
.message { .message {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
padding: 4px 4px 4px var(--space-xs); padding: 6px 6px 6px var(--space-xs);
margin-top: 16px; margin-top: 14px;
overflow-x: hidden;
word-wrap: break-word; word-wrap: break-word;
position: relative; position: relative;
} }
@ -121,13 +120,15 @@
.message-actions { .message-actions {
display: flex; display: flex;
position: absolute; position: absolute;
top: 3px; top: -6px;
right: 12px; right: 12px;
z-index: 1; z-index: 1;
background-color: var(--background-color-1);
border-radius: var(--radius-sm);
} }
.message-actions .icon-button { .message-actions .icon-button {
margin: 0; margin: 7px;
padding: 0; padding: 0;
} }
@ -190,14 +191,14 @@
{/if} {/if}
<div class="message-actions"> <div class="message-actions">
<button class="icon-button material-icons-outlined" on:click="{ reply }" aria-label="Reply to Message">
reply
</button>
{#if message._editable} {#if message._editable}
<button class="icon-button material-icons-outlined" on:click="{ () => overlayStore.push(OverlayType.EditMessage, { message }) }" aria-label="Edit Message"> <button class="icon-button material-icons-outlined" on:click="{ () => overlayStore.push(OverlayType.EditMessage, { message }) }" aria-label="Edit Message">
edit edit
</button> </button>
{/if} {/if}
<button class="icon-button material-icons-outlined" on:click="{ reply }" aria-label="Reply to Message">
reply
</button>
</div> </div>
</div> </div>
</div> </div>