Add rotation effect to "Show More Chats" button and toggle visibility of hidden chats
| @@ -186,6 +186,10 @@ body.big-avatars .welcomeRecent .recentChatList .recentChat .chatMessageContaine | ||
| 186 | 186 | align-self: center; |
| 187 | 187 | } |
| 188 | 188 | |
| 189 | +.welcomeRecent .recentChatList .showMoreChats.rotate { | |
| 190 | + transform: rotate(180deg); | |
| 191 | +} | |
| 192 | + | |
| 189 | 193 | @media screen and (max-width: 1000px) { |
| 190 | 194 | .welcomePanel .welcomeShortcuts a span { |
| 191 | 195 | display: none; |
| @@ -107,10 +107,11 @@ async function sendWelcomePanel() { | ||
| 107 | 107 | const hiddenChats = fragment.querySelectorAll('.recentChat.hidden'); |
| 108 | 108 | fragment.querySelectorAll('button.showMoreChats').forEach((button) => { |
| 109 | 109 | button.addEventListener('click', () => { |
| 110 | + const rotate = button.classList.contains('rotate'); | |
| 110 | 111 | hiddenChats.forEach((chatItem) => { |
| 111 | 112 | chatItem.classList.removetoggle('hidden', rotate); |
| 112 | 113 | }); |
| 113 | 114 | button.removeclassList.toggle('rotate', !rotate); |
| 114 | 115 | }); |
| 115 | 116 | }); |
| 116 | 117 | fragment.querySelectorAll('button.openTemporaryChat').forEach((button) => { |