Skip to content

Commit 6e166cb

Browse files
committed
(UI) change toggle icon
1 parent c8e985e commit 6e166cb

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

src/ChatWindow/MessagesList.vue

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
v-if="(isMobile && !showRoomsList) || !isMobile"
66
>
77
<div class="room-header app-border-b">
8-
<div class="svg-button toggle-button" @click="$emit('toggleRoomsList')">
8+
<div
9+
class="svg-button toggle-button"
10+
:class="{ 'rotate-icon': !showRoomsList && !isMobile }"
11+
@click="$emit('toggleRoomsList')"
12+
>
913
<svg-icon name="toggle" />
1014
</div>
1115
<div
@@ -494,6 +498,15 @@ export default {
494498
495499
.toggle-button {
496500
margin-right: 15px;
501+
502+
svg {
503+
height: 26px;
504+
width: 26px;
505+
}
506+
}
507+
508+
.rotate-icon {
509+
transform: rotate(180deg) !important;
497510
}
498511
499512
.room-name {

src/ChatWindow/SvgIcon.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default {
3838
},
3939
{
4040
name: 'toggle',
41-
path: 'M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z'
41+
path: 'M5,13L9,17L7.6,18.42L1.18,12L7.6,5.58L9,7L5,11H21V13H5M21,6V8H11V6H21M21,16V18H11V16H21Z'
4242
},
4343
4444
{

0 commit comments

Comments
 (0)