Make current chat expand to full width when session panel collapsed

This behavior also matches web client behavior on chat session panel
collapse
This commit is contained in:
Debanjum Singh Solanky
2024-04-07 22:01:43 +05:30
parent 913dcdfbcd
commit 377e979800

View File

@@ -1062,8 +1062,6 @@
document.getElementById('new-conversation').classList.toggle('collapsed');
document.getElementById('existing-conversations').classList.toggle('collapsed');
document.getElementById('side-panel-collapse').style.transform = document.getElementById('side-panel').classList.contains('collapsed') ? 'rotate(0deg)' : 'rotate(180deg)';
document.getElementById('chat-section-wrapper').classList.toggle('mobile-friendly');
}
</script>
<body>
@@ -1190,7 +1188,7 @@
#chat-section-wrapper {
display: grid;
grid-template-columns: auto auto;
grid-template-columns: auto 1fr;
grid-column-gap: 10px;
grid-row-gap: 10px;
padding: 10px;
@@ -1198,10 +1196,6 @@
overflow-y: scroll;
}
#chat-section-wrapper.mobile-friendly {
grid-template-columns: auto auto;
}
#chat-body-wrapper {
display: flex;
flex-direction: column;