Skip to content
Extraits de code Groupes Projets
Valider 42789070 rédigé par Brieuc Dubois's avatar Brieuc Dubois
Parcourir les fichiers

Merge branch '143-identical-avatars-for-users-in-the-chat' into 'dev'

Solve wrong avatar in chat and reply's arrow position

Closes #143 and #145

See merge request !20
parents 1f81fe50 ad3cb139
Aucune branche associée trouvée
Aucune étiquette associée trouvée
2 requêtes de fusion!21Dev,!20Solve wrong avatar in chat and reply's arrow position
...@@ -194,7 +194,7 @@ ...@@ -194,7 +194,7 @@
> >
<div class="rounded-full mx-2 chat-image size-12" title={message.user.nickname}> <div class="rounded-full mx-2 chat-image size-12" title={message.user.nickname}>
<img <img
src={`https://gravatar.com/avatar/${user.emailHash}?d=identicon`} src={`https://gravatar.com/avatar/${message.user.emailHash}?d=identicon`}
alt={user.nickname} alt={user.nickname}
class="rounded-full border border-neutral-400 text-sm" class="rounded-full border border-neutral-400 text-sm"
/> />
...@@ -280,7 +280,9 @@ ...@@ -280,7 +280,9 @@
</button> </button>
{/if} {/if}
<button <button
class="absolute bottom-0 left-[-3.5rem] invisible group-hover:visible h-full p-0" class="absolute bottom-0 invisible group-hover:visible h-full p-0"
class:right-[-1.5rem]={!isSender}
class:left-[-3.5rem]={isSender}
onclick={() => (replyTo = message)} onclick={() => (replyTo = message)}
> >
<Icon src={ArrowUturnLeft} class="w-5 h-full text-gray-500 hover:text-gray-800" /> <Icon src={ArrowUturnLeft} class="w-5 h-full text-gray-500 hover:text-gray-800" />
...@@ -296,7 +298,6 @@ ...@@ -296,7 +298,6 @@
{/if} {/if}
</div> </div>
</div> </div>
<div <div
class="absolute invisible rounded-xl border border-gray-400 bg-white divide-x" class="absolute invisible rounded-xl border border-gray-400 bg-white divide-x"
bind:this={hightlight} bind:this={hightlight}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter