Make ChatListItem use focused-style

This commit is contained in:
tusooa 2023-03-02 21:26:31 -05:00
parent 830085b3e4
commit 090f4b854e
No known key found for this signature in database
GPG Key ID: 7B467EDE43A08224
2 changed files with 13 additions and 8 deletions

View File

@ -1,3 +1,5 @@
@import "src/mixins";
.chat-list-item {
display: flex;
flex-direction: row;
@ -7,11 +9,11 @@
box-sizing: border-box;
cursor: pointer;
:focus {
@include unfocused-style {
outline: none;
}
&:hover {
@include focused-style {
background-color: var(--selectedPost, $fallback--lightBg);
box-shadow: 0 0 3px 1px rgb(0 0 0 / 10%);
}
@ -63,13 +65,15 @@
pointer-events: none;
}
&:hover .animated.avatar {
canvas {
display: none;
}
@include focused-style {
.animated.avatar {
canvas {
display: none;
}
img {
visibility: visible;
img {
visibility: visible;
}
}
}

View File

@ -1,6 +1,7 @@
<template>
<div
class="chat-list-item"
tabindex="0"
@click.capture.prevent="openChat"
>
<div class="chat-list-item-left">