From bfa38e7d181f8cd5e574f2d8b925e97fa8ce60db Mon Sep 17 00:00:00 2001 From: iRedTea Date: Thu, 15 Oct 2026 22:35:30 +0300 Subject: [PATCH] feat: the + menu without descriptions, narrower --- internal/server/web/static/app.css | 2 +- internal/server/web/static/workspace.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/server/web/static/app.css b/internal/server/web/static/app.css index 41d646e..6a7a190 100644 --- a/internal/server/web/static/app.css +++ b/internal/server/web/static/app.css @@ -403,7 +403,7 @@ body.dnd, body.dnd * { cursor:grabbing !important; } .empty { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; color:var(--muted); } .empty[hidden] { display:none; } /* The "+" menu: a terminal here, or on another machine. */ -.addmenu { position:fixed; z-index:50; min-width:270px; max-width:340px; max-height:70vh; overflow:auto; padding:6px; +.addmenu { position:fixed; z-index:50; min-width:220px; max-width:340px; max-height:70vh; overflow:auto; padding:6px; background:var(--panel); border:1px solid var(--border); border-radius:10px; box-shadow:0 14px 36px rgba(0,0,0,.55); animation:menu-in .14s ease; } .addmenu[hidden] { display:none; } diff --git a/internal/server/web/static/workspace.js b/internal/server/web/static/workspace.js index b053e10..8ff9c10 100644 --- a/internal/server/web/static/workspace.js +++ b/internal/server/web/static/workspace.js @@ -477,7 +477,7 @@ // A group: «Терминал ›» or «Файловый менеджер ›», opening to here, the // other machines and an SSH host. const group = (icon, label, kind, sshKind, mode) => { - const g = item(addMenu, '' + icon + '' + label + 'здесь, на другой машине или по SSH›', () => { + const g = item(addMenu, '' + icon + '' + label + '›', () => { if (g.nextSibling && g.nextSibling.classList && g.nextSibling.classList.contains('mlist')) { g.nextSibling.remove(); placeMenu(anchor); return; } addMenu.querySelectorAll('.mlist').forEach(x => x.remove()); const list = document.createElement('div');