ui: заменить оставшиеся боковые панели на центрированные popup.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -78,17 +78,13 @@ function chatToggleArchived(show) {
|
||||
|
||||
function chatPanelOpen(id) {
|
||||
var panel = document.getElementById(id);
|
||||
var overlay = document.getElementById(id + '-overlay');
|
||||
if (overlay) overlay.style.display = 'block';
|
||||
if (panel) panel.style.transform = 'translateX(0)';
|
||||
if (panel) panel.style.display = 'flex';
|
||||
document.body.style.overflow = 'hidden';
|
||||
}
|
||||
|
||||
function chatPanelClose(id) {
|
||||
var panel = document.getElementById(id);
|
||||
var overlay = document.getElementById(id + '-overlay');
|
||||
if (overlay) overlay.style.display = 'none';
|
||||
if (panel) panel.style.transform = 'translateX(100%)';
|
||||
if (panel) panel.style.display = 'none';
|
||||
document.body.style.overflow = '';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user