Skip to content

Commit 76171cf

Browse files
committed
(css) remove !important
1 parent 3b57c81 commit 76171cf

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/ChatWindow/MessagesList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<div
1616
v-if="room.avatar"
1717
class="room-avatar"
18-
:style="{ background: `url(${room.avatar})` }"
18+
:style="{ 'background-image': `url(${room.avatar})` }"
1919
></div>
2020
<div class="room-name">{{ room.roomName }}</div>
2121
<div

src/ChatWindow/RoomsList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<div
3838
v-if="room.avatar"
3939
class="room-avatar"
40-
:style="{ background: `url(${room.avatar})` }"
40+
:style="{ 'background-image': `url(${room.avatar})` }"
4141
></div>
4242
<div class="name-container">
4343
<div class="title-container">

src/styles/helper.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@
3838
}
3939

4040
.room-avatar {
41-
background-size: cover !important;
42-
background-position: center center !important;
43-
background-repeat: no-repeat !important;
41+
background-size: cover;
42+
background-position: center center;
43+
background-repeat: no-repeat;
44+
background-color: #9ca6af;
4445
height: 42px;
4546
width: 42px;
4647
margin-right: 15px;

0 commit comments

Comments
 (0)