diff --git a/activityDb.js b/activityDb.js index 795990a..df6e4d8 100644 --- a/activityDb.js +++ b/activityDb.js @@ -106,6 +106,17 @@ db.exec(` ) `); +db.exec(` + CREATE TABLE IF NOT EXISTS env_history ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + agent_id INTEGER NOT NULL DEFAULT 1, + agent_name TEXT NOT NULL DEFAULT '', + content TEXT NOT NULL, + note TEXT NOT NULL DEFAULT '', + created_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')) + ) +`); + try { db.exec(`ALTER TABLE dashboard_chart_lines ADD COLUMN color TEXT`); } catch (e) { @@ -154,6 +165,12 @@ try { // Column already exists } +try { + db.exec(`ALTER TABLE agent_settings ADD COLUMN use_agent_sender INTEGER NOT NULL DEFAULT 0`); +} catch (e) { + // Column already exists +} + /** * Generate a UUID v7 (time-ordered). */ diff --git a/public/css/style.css b/public/css/style.css index 1b094f9..183c8ef 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -1878,15 +1878,17 @@ body { position: absolute; top: 100%; left: 0; - right: 0; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-md); - max-height: 220px; + max-height: 280px; overflow-y: auto; z-index: 1000; box-shadow: var(--shadow-lg); backdrop-filter: blur(8px); + min-width: 480px; + width: max-content; + max-width: 85vw; } .autocomplete-suggestion-item { @@ -1896,6 +1898,7 @@ body { font-size: 0.85rem; color: var(--text-primary); transition: all var(--transition-fast); + white-space: nowrap; } .autocomplete-suggestion-item:hover { diff --git a/public/index.html b/public/index.html index 6faea14..9c6ed50 100644 --- a/public/index.html +++ b/public/index.html @@ -70,6 +70,16 @@ +