Fix styles conflict with timelines

This commit is contained in:
Cohee
2025-05-12 22:40:00 +03:00
parent 474b2537b5
commit d6054e1555
2 changed files with 3 additions and 3 deletions

View File

@ -186,7 +186,7 @@ body.big-avatars .welcomeRecent .recentChatList .recentChat .chatMessageContaine
align-self: center;
}
.welcomeRecent .recentChatList .showMoreChats.rotate {
.welcomeRecent .recentChatList .showMoreChats.rotated {
transform: rotate(180deg);
}

View File

@ -107,11 +107,11 @@ async function sendWelcomePanel() {
const hiddenChats = fragment.querySelectorAll('.recentChat.hidden');
fragment.querySelectorAll('button.showMoreChats').forEach((button) => {
button.addEventListener('click', () => {
const rotate = button.classList.contains('rotate');
const rotate = button.classList.contains('rotated');
hiddenChats.forEach((chatItem) => {
chatItem.classList.toggle('hidden', rotate);
});
button.classList.toggle('rotate', !rotate);
button.classList.toggle('rotated', !rotate);
});
});
fragment.querySelectorAll('button.openTemporaryChat').forEach((button) => {