Add multimodal AI chat attachments

This commit is contained in:
redtea committed 2026-10-16 15:46:23 +03:00
1 parent 8aba30a093
commit 84b42c5369
6 files changed
+434 -39

No files matched your search

+4 -2
View File
@@ -84,7 +84,7 @@
}
live.forEach((t, i) => { t.el.style.width = Math.min(want[i], cap) + 'px'; });
}
window.addEventListener('resize', () => fitTabs());
window.addEventListener('resize', () => { fitTabs(); placeFloat(); });
function renderTab(t) {
t.el.querySelector('.tab-title').textContent = tabTitle(t);
@@ -148,7 +148,9 @@
}
// With one tab and a file pane in the top right corner, the "+" joins
// that pane's top bar: right of "Обновить", above "Удалить выбранное",
// a button of the same size. Otherwise it is back in the corner.
// a button of the same size. It is positioned in .area, not the scrolling
// .fpane-body, so it stays beside the path field while the file list scrolls.
// Otherwise it is back in the corner.
function placeFloat() {
const p = tabs.length === 1 ? tabs[0].panes.find(s => s.el.classList.contains('under-plus')) : null;
const bars = p && /files$/.test(p.kind) ? p.el.querySelectorAll('.fm-bar') : [];