Agent Zero AI framework
extension friendly bottom and quick actions CSS
Alessandroe03569ef7d18
diff --git a/webui/components/chat/input/bottom-actions.html b/webui/components/chat/input/bottom-actions.htmlindex ddd02916b..e08df9105 100644--- a/webui/components/chat/input/bottom-actions.html+++ b/webui/components/chat/input/bottom-actions.html@@ -80,8 +80,11 @@</div><style>- .text-buttons-row { width: 100%; display: flex; padding-top: var(--spacing-xs); margin-left: var(--spacing-xs); }- .text-buttons-row > x-extension { display: contents; }+ .text-buttons-row { width: 100%; display: flex; flex-wrap: wrap; gap: var(--spacing-xs); padding-top: var(--spacing-xs); margin-left: var(--spacing-xs); }+ .text-buttons-row > x-extension:not(:empty) { display: contents; }+ .text-buttons-row > x-extension:empty { display: none; }+ .text-buttons-row > x-extension > x-component,+ .text-buttons-row > x-extension > x-component > div[x-data] { display: contents; }.text-button { background-color: transparent; border: none; border-radius: 5px; color: var(--color-text); font-family: "Rubik", Arial, Helvetica, sans-serif; font-size: 0.6rem; padding: 6px var(--spacing-sm); cursor: pointer; opacity: 0.8; -webkit-transition: all 0.3s; transition: all 0.3s; display: flex; align-items: center; gap: var(--spacing-xs); }.text-button:hover:not(:disabled) { opacity: 1; background-color: var(--color-background-hover); border-radius: 4px; }.text-button:active:not(:disabled) { opacity: 0.5; }@@ -90,8 +93,8 @@.text-button .material-symbols-outlined { font-size: 14px; flex-shrink: 0; }.text-button p { margin-block: 0; }- @media (max-width: 768px) { .text-buttons-row { width: 90%; display: flex; padding-top: var(--spacing-xs); gap: var(--spacing-xs); white-space: pre-wrap; } .text-button { font-size: 0.6rem; } .text-button svg { width: 18px; height: 18px; flex-shrink: 0; } .text-button .material-symbols-outlined { font-size: 18px; } }- @media (max-width: 640px) { .text-buttons-row { display: flex; width: 90%; padding-top: var(--spacing-xs); gap: var(--spacing-xs); white-space: pre-wrap; } .text-button { max-height: 25px; } .text-button p { display: none; } }+ @media (max-width: 768px) { .text-buttons-row { width: 90%; display: flex; flex-wrap: wrap; padding-top: var(--spacing-xs); gap: var(--spacing-xs); white-space: pre-wrap; } .text-button { font-size: 0.6rem; } .text-button svg { width: 18px; height: 18px; flex-shrink: 0; } .text-button .material-symbols-outlined { font-size: 18px; } }+ @media (max-width: 640px) { .text-buttons-row { display: flex; flex-wrap: wrap; width: 90%; padding-top: var(--spacing-xs); gap: var(--spacing-xs); white-space: pre-wrap; } .text-button { max-height: 25px; } .text-button p { display: none; } }</style></body></html>diff --git a/webui/components/chat/input/progress.html b/webui/components/chat/input/progress.htmlindex caba06014..1bd15b823 100644--- a/webui/components/chat/input/progress.html+++ b/webui/components/chat/input/progress.html@@ -37,7 +37,7 @@<style>- #progress-bar-box { background-color: var(--color-panel); padding: var(--spacing-sm) var(--spacing-md); padding-bottom: 0; display: flex; justify-content: space-between; z-index: 1001; gap: var(--spacing-sm); }+ #progress-bar-box { background-color: var(--color-panel); padding: var(--spacing-sm) var(--spacing-md); padding-bottom: 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; z-index: 1001; gap: var(--spacing-sm); }#progress-bar-box > x-extension { display: contents; }#progress-bar-box h4 { margin: 0 1.2em 0 0; }#progress-bar-h { color: var(--color-primary); display: flex; align-items: left; justify-content: flex-start; height: 1.2em; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; font-weight: normal; }diff --git a/webui/components/sidebar/top-section/quick-actions.html b/webui/components/sidebar/top-section/quick-actions.htmlindex cd6f7ae01..4e5a9cd60 100644--- a/webui/components/sidebar/top-section/quick-actions.html+++ b/webui/components/sidebar/top-section/quick-actions.html@@ -116,22 +116,34 @@/* Ensure dropdown appears above all sidebar content */}- /* Icon toolbar layout */+ /* Icon toolbar layout – grid for extension-friendly wrapping */#quick-actions {- display: flex;- flex-direction: row;- flex-wrap: nowrap;+ display: grid;+ grid-template-columns: repeat(5, 1fr);+ grid-auto-rows: auto;width: 100%;- justify-content: space-between;padding: 0;- gap: 0;+ gap: var(--spacing-xs);+ }++ #quick-actions > x-extension:not(:empty) {+ display: contents;+ }++ #quick-actions > x-extension:empty {+ display: none;+ }++ #quick-actions > x-extension > x-component,+ #quick-actions > x-extension > x-component > div[x-data] {+ display: contents;}/* Config button - icon only style */.config-button {background-color: var(--color-panel);border: 0.05rem solid var(--color-border);- border-radius: 0;+ border-radius: 4px;cursor: pointer;display: flex;align-items: center;@@ -154,21 +166,6 @@transform: rotate(180deg);}- /* Connected button borders */- .config-button:not(:last-child) {- margin-right: -1px;- border-right: 1px solid var(--color-border);- }-- .config-button:first-of-type {- border-top-left-radius: 6px !important;- border-bottom-left-radius: 6px !important;- }-- .config-button:last-child {- border-top-right-radius: 6px !important;- border-bottom-right-radius: 6px !important;- }.config-button:hover {background-color: var(--color-background-hover);