diff --git a/wwwroot/css/dashboard.css b/wwwroot/css/dashboard.css
index 369dbac..2275feb 100644
--- a/wwwroot/css/dashboard.css
+++ b/wwwroot/css/dashboard.css
@@ -187,6 +187,9 @@
padding: var(--menu-item-padding);
background: none;
white-space: nowrap;
+ display: flex;
+ align-items: center;
+ gap: var(--badge-spacing);
}
.card-menu-item:not(:disabled):hover {
diff --git a/wwwroot/index.html b/wwwroot/index.html
index 0c35fa0..53703cd 100644
--- a/wwwroot/index.html
+++ b/wwwroot/index.html
@@ -144,9 +144,6 @@
Auf Erinnerungen zugreifen (Memory-Tools verfügbar)
-
diff --git a/wwwroot/js/pages/agent-page.js b/wwwroot/js/pages/agent-page.js
index 0f041fb..b375591 100644
--- a/wwwroot/js/pages/agent-page.js
+++ b/wwwroot/js/pages/agent-page.js
@@ -33,8 +33,6 @@ registerPage('agent', {
const deleteBtn = document.getElementById('agentDeleteBtn');
const commandsList = document.getElementById('agentCommandsList');
const addCommandBtn = document.getElementById('agentAddCommandBtn');
- const filesSection = document.getElementById('agentFilesSection');
- const filesBtn = document.getElementById('agentFilesBtn');
const skillsSection = document.getElementById('agentSkillsSection');
const skillList = document.getElementById('agentSkillList');
@@ -53,7 +51,6 @@ registerPage('agent', {
useMemoryEl.checked = agent.useMemory !== false;
_agentAvatarData = agent.avatar || null;
deleteBtn.hidden = false;
- filesSection.hidden = false;
if (agent.avatar) {
avatarPreview.innerHTML = `

`;
@@ -79,11 +76,6 @@ registerPage('agent', {
}
}
- // Agent-Dateien öffnen
- filesBtn.addEventListener('click', () => {
- openFileExplorer({ agentId: agentId });
- });
-
// Befehl hinzufügen
addCommandBtn.addEventListener('click', () => createCommandRow(commandsList));
diff --git a/wwwroot/js/pages/dashboard.js b/wwwroot/js/pages/dashboard.js
index 4215e58..5d06d60 100644
--- a/wwwroot/js/pages/dashboard.js
+++ b/wwwroot/js/pages/dashboard.js
@@ -42,8 +42,8 @@ registerPage('dashboard', {
@@ -156,7 +156,8 @@ registerPage('dashboard', {
@@ -170,6 +171,11 @@ registerPage('dashboard', {
closeAllCardMenus();
menuDropdown.hidden = !menuDropdown.hidden;
});
+ menuDropdown.querySelector('[data-action="files"]').addEventListener('click', (e) => {
+ e.stopPropagation();
+ menuDropdown.hidden = true;
+ openFileExplorer({ agentId: a.agentId });
+ });
menuDropdown.querySelector('[data-action="edit"]').addEventListener('click', (e) => {
e.stopPropagation();
menuDropdown.hidden = true;