Agent Zero AI framework
fix: card thumbnails, search/sort sizing, link styling, management buttons
TerminallyLazye7f9456b0710
diff --git a/plugins/plugin_installer/webui/install-detail.html b/plugins/plugin_installer/webui/install-detail.htmlindex 27dc94bff..c824344f4 100644--- a/plugins/plugin_installer/webui/install-detail.html+++ b/plugins/plugin_installer/webui/install-detail.html@@ -50,9 +50,55 @@<div class="pi-detail-actions"><template x-if="$store.pluginInstallStore.selectedPlugin.installed">- <button class="button" disabled>- <span class="icon material-symbols-outlined">check</span> Already Installed- </button>+ <div>+ <div class="pi-installed-badge-row">+ <span class="material-symbols-outlined pi-installed-check">check_circle</span>+ <span class="pi-installed-label">Installed</span>+ </div>++ <div x-show="$store.pluginInstallStore.installedPluginInfoLoading" class="pi-loading-inline">+ Loading plugin info...+ </div>++ <template x-if="$store.pluginInstallStore.installedPluginInfo">+ <div class="pi-manage-actions">+ <template x-if="$store.pluginInstallStore.installedPluginInfo.has_main_screen">+ <button type="button" class="button"+ @click="$store.pluginInstallStore.manageOpenPlugin()">+ <span class="icon material-symbols-outlined">dashboard</span> Open+ </button>+ </template>+ <template x-if="$store.pluginInstallStore.installedPluginInfo.has_config_screen">+ <button type="button" class="button"+ @click="$store.pluginInstallStore.manageOpenConfig()">+ <span class="icon material-symbols-outlined">settings</span> Config+ </button>+ </template>+ <template x-if="$store.pluginInstallStore.installedPluginInfo.has_readme">+ <button type="button" class="button"+ @click="$store.pluginInstallStore.manageOpenDoc('readme')">+ <span class="icon material-symbols-outlined">description</span> README+ </button>+ </template>+ <template x-if="$store.pluginInstallStore.installedPluginInfo.has_license">+ <button type="button" class="button"+ @click="$store.pluginInstallStore.manageOpenDoc('license')">+ <span class="icon material-symbols-outlined">gavel</span> License+ </button>+ </template>+ <button type="button" class="button"+ @click="$store.pluginInstallStore.manageOpenInfo()">+ <span class="icon material-symbols-outlined">info</span> Info+ </button>+ <template x-if="$store.pluginInstallStore.installedPluginInfo.is_custom">+ <button type="button" class="button cancel"+ @click="$confirmClick($event, () => $store.pluginInstallStore.manageDeletePlugin())">+ <span class="icon material-symbols-outlined">delete</span> Delete+ </button>+ </template>+ </div>+ </template>+ </div></template><template x-if="!$store.pluginInstallStore.selectedPlugin.installed"><button class="button confirm"@@ -112,11 +158,11 @@.pi-detail-thumb img {width: 100%;height: 100%;- object-fit: cover;+ object-fit: contain;}.pi-detail-placeholder {- font-size: 3rem;+ font-size: 4rem;color: var(--color-text-muted);}@@ -177,6 +223,16 @@.pi-link:hover {text-decoration: underline;+ text-underline-offset: 2px;+ }++ .pi-link .material-symbols-outlined {+ text-decoration: none;+ color: var(--color-highlight);+ }++ .pi-link:hover .material-symbols-outlined {+ text-decoration: none;}.pi-detail-actions {@@ -220,6 +276,45 @@font-family: var(--font-family-code);}+ .pi-installed-badge-row {+ display: flex;+ align-items: center;+ gap: 0.4rem;+ margin-bottom: 0.75rem;+ }++ .pi-installed-check {+ font-size: 1.3rem;+ color: #22c55e;+ }++ .pi-installed-label {+ font-weight: 600;+ font-size: 0.95rem;+ color: #22c55e;+ }++ .pi-manage-actions {+ display: flex;+ flex-wrap: wrap;+ gap: 0.5rem;+ }++ .pi-manage-actions .button {+ padding: 0.3rem 0.6rem;+ font-size: 0.9rem;+ }++ .pi-manage-actions .button .icon {+ font-size: 1.1rem;+ }++ .pi-loading-inline {+ font-size: 0.85rem;+ color: var(--color-text-secondary);+ padding: 0.5rem 0;+ }+@media (max-width: 500px) {.pi-detail-header {flex-direction: column;diff --git a/plugins/plugin_installer/webui/install-index.html b/plugins/plugin_installer/webui/install-index.htmlindex 2845de973..bae2b72ec 100644--- a/plugins/plugin_installer/webui/install-index.html+++ b/plugins/plugin_installer/webui/install-index.html@@ -18,8 +18,8 @@placeholder="Search plugins..."><select class="pi-sort-select"x-model="$store.pluginInstallStore.sortBy">- <option value="stars">Sort by Stars</option>- <option value="name">Sort by Name</option>+ <option value="stars">Stars</option>+ <option value="name">Name</option></select></div>@@ -44,14 +44,14 @@<template x-if="!plugin.thumbnail"><span class="material-symbols-outlined pi-card-placeholder">extension</span></template>- </div>- <div class="pi-card-body">- <div class="pi-card-title">- <span x-text="plugin.title || plugin.key"></span>+ <div class="pi-card-thumb-overlay">+ <span class="pi-card-thumb-title" x-text="plugin.title || plugin.key"></span><template x-if="plugin.installed"><span class="pi-badge-installed">Installed</span></template></div>+ </div>+ <div class="pi-card-body"><div class="pi-card-desc" x-text="$store.pluginInstallStore.truncate(plugin.description, 100)"></div></div><div class="pi-card-footer">@@ -100,6 +100,7 @@.pi-search-input {flex: 1;+ min-width: 0;padding: 0.5rem 0.75rem;border: 1px solid var(--color-border);border-radius: 4px;@@ -109,6 +110,8 @@}.pi-sort-select {+ max-width: 140px;+ flex-shrink: 0;padding: 0.5rem;border: 1px solid var(--color-border);border-radius: 4px;@@ -141,46 +144,63 @@.pi-card-thumb {width: 100%;- height: 120px;+ height: 140px;overflow: hidden;display: flex;align-items: center;justify-content: center;background: var(--color-panel);+ position: relative;}.pi-card-thumb img {width: 100%;height: 100%;- object-fit: cover;+ object-fit: contain;+ padding: 0.5rem;}.pi-card-placeholder {- font-size: 3rem;+ font-size: 4.5rem;color: var(--color-text-muted);}- .pi-card-body {- padding: 0.6rem 0.75rem;- flex: 1;- }-- .pi-card-title {- font-weight: 600;- font-size: 0.95rem;+ .pi-card-thumb-overlay {+ position: absolute;+ bottom: 0;+ left: 0;+ right: 0;+ padding: 0.4rem 0.6rem;+ background: rgba(0, 0, 0, 0.55);display: flex;align-items: center;gap: 0.4rem;- flex-wrap: wrap;+ }++ .pi-card-thumb-title {+ font-weight: 600;+ font-size: 0.85rem;+ color: #fff;+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+ flex: 1;+ min-width: 0;}.pi-badge-installed {- font-size: 0.7rem;+ font-size: 0.65rem;font-weight: 600;padding: 0.1rem 0.4rem;border-radius: 3px;- background: rgba(34,197,94,0.2);- color: #22c55e;+ background: rgba(34,197,94,0.3);+ color: #4ade80;+ flex-shrink: 0;+ }++ .pi-card-body {+ padding: 0.5rem 0.75rem;+ flex: 1;}.pi-card-desc {