Agent Zero AI framework
KaTeX fix and mobile improvements
Alessandro21933bce2f5e
diff --git a/webui/index.css b/webui/index.cssindex 3fba4cb9e..c65bc8730 100644--- a/webui/index.css+++ b/webui/index.css@@ -69,6 +69,8 @@ html {font-family: "Rubik", Arial, Helvetica, sans-serif;width: 100%;height: 100%;+ min-width: 320px !important;+ min-height: 370px !important;margin: 0;padding: 0;overflow: hidden;@@ -736,17 +738,17 @@ pre {padding: var(--spacing-sm) 0.75rem;text-wrap: nowrap;background-color: var(--color-secondary);- width: 49%;+ width: 48%;-webkit-transition: background-color var(--transition-speed), transform 0.1s ease-in-out;transition: background-color var(--transition-speed), transform 0.1s ease-in-out;}.config-button:hover {- background-color: #2d2f31;+ opacity: 1;}.config-button:active {- background-color: #111;+ opacity: 0.5;}.edit-button {@@ -804,6 +806,10 @@ pre {opacity: 1;}+.attachment-icon:active {+ opacity: 0.5;+}+/* Text input */#chat-input {flex-grow: 1;@@ -813,6 +819,7 @@ pre {border: 1px solid var(--color-border);border-radius: 8px;resize: none;+ align-content: center;}.input-row {@@ -826,7 +833,7 @@ pre {display: flex;padding-top: var(--spacing-xs);gap: var(--spacing-xs);- white-space: nowrap;+ white-space: pre-wrap;}.text-button {@@ -850,7 +857,11 @@ pre {border-radius: 4px;}-.text-button > svg {+.text-button:active {+ opacity: 0.5;+}++.text-button svg {width: 14px;height: 14px;flex-shrink: 0; /* prevents SVG from shrinking */@@ -1270,7 +1281,8 @@ input:checked + .slider:before {/* Math (KaTeX) */.katex {font-family: Roboto Mono !important;- font-size: 0.75rem !important;+ line-height: 1rem !important;+ font-size: var(--font-size-normal) !important;}/* Animations */@@ -1297,6 +1309,24 @@ input:checked + .slider:before {}}++@media (max-width: 600px) {+ #chat-input {+ min-height: 5.3rem;+ align-content: start;+ }++ #chat-buttons-wrapper {+ display: flex;+ gap: var(--spacing-xs);+ padding: 0;+ width: 3.5rem;+ flex-wrap: wrap;+ transition: all 0.3s ease;+ -webkit-transition: all 0.3s ease;+ }+}+@media (max-width: 768px) {#left-panel {position: fixed;@@ -1329,18 +1359,25 @@ input:checked + .slider:before {#right-panel.expanded #logo-container {margin-left: 4.6rem;}-- #chat-buttons-wrapper {- display: inline;- }-+#input-section {align-items:start;}- #chat-input {- min-height: 3rem;- align-content: center;+ .text-buttons-row {+ width: 100%;+ display: flex;+ padding-top: var(--spacing-xs);+ gap: var(--spacing-xs);+ white-space: pre-wrap;+ }+ .text-button {+ text-align: left;+ }+ .text-button svg {+ width: 18px;+ height: 18px;+ flex-shrink: 0; /* prevents SVG from shrinking */}}@@ -1353,16 +1390,6 @@ input:checked + .slider:before {}@media (max-height: 600px) {- #chats-section {- min-height: 100%;- }-- .left-panel-top {- overflow-y: auto;- scroll-behavior: smooth;- -webkit-scroll-behavior: smooth;- }-/* consistent font sizing */html {-webkit-text-size-adjust: 100%;@@ -1375,6 +1402,16 @@ input:checked + .slider:before {-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;}++ #chats-section {+ min-height: 100%;+ }++ .left-panel-top {+ overflow-y: auto;+ scroll-behavior: smooth;+ -webkit-scroll-behavior: smooth;+ }}@media screen and (orientation: landscape) {@@ -1384,4 +1421,4 @@ input:checked + .slider:before {-webkit-text-size-adjust: none;text-size-adjust: none;}-}+}\ No newline at end of filediff --git a/webui/index.html b/webui/index.htmlindex 1f7d23fb5..b14877aa7 100644--- a/webui/index.html+++ b/webui/index.html@@ -225,14 +225,15 @@<!-- Text input --><textarea id="chat-input" placeholder="Type your message here..." rows="1"></textarea>-++ <div id="chat-buttons-wrapper"><!-- Send button --><button class="chat-button" id="send-button" aria-label="Send message"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M25 20 L75 50 L25 80" fill="none" stroke="currentColor" stroke-width="15"></path></svg></button>-+<!-- Microphone button --><button class="chat-button" id="microphone-button" aria-label="Start/Stop recording"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" width="24" height="24">@@ -240,6 +241,7 @@</svg></button></div>+ </div><!-- Bottom row with text buttons --><div class="text-buttons-row">diff --git a/webui/settings.css b/webui/settings.cssindex 23faae7ff..43f7329f5 100644--- a/webui/settings.css+++ b/webui/settings.css@@ -1,340 +1,336 @@-* {- transition: all var(--transition-speed) ease-in-out;-}-select {- transition: none;-}--.modal-overlay {- position: fixed;- top: 0;- left: 0;- right: 0;- bottom: 0;- background: rgba(0, 0, 0, 0.5);- display: flex;- align-items: center;- justify-content: center;- z-index: 2001;-}--.modal-container {- background: var(--color-panel);- color: var(--color-primary);- border-radius: 0.5rem;- width: 90%;- max-width: 800px;- max-height: 90vh;- display: flex;- flex-direction: column;-}--.modal-header {- padding: 0.875rem 2rem;- border-bottom: 1px solid var(--color-border);-}--.modal-content {- padding: 1.5rem;- overflow-y: auto;- flex-grow: 1;- background-clip: border-box;- border: 6px solid transparent;- transition: all 0.3s ease;- margin-bottom: 0;- padding-bottom: 0;-}--.modal-content::-webkit-scrollbar {- width: 6px;- height: 6px;-}--.modal-content::-webkit-scrollbar-track {- background: transparent;- margin: 4px 0;- border-radius: 6px;-}--.modal-content::-webkit-scrollbar-thumb {- background-color: rgba(155, 155, 155, 0.5);- border-radius: 6px;- transition: background-color 0.2s ease;-}--.modal-content::-webkit-scrollbar-thumb:hover {- background-color: rgba(155, 155, 155, 0.7);-}--.modal-footer {- padding: 1.5rem 2rem;- border-top: 1px solid var(--color-border);- display: flex;- justify-content: flex-end;- gap: 1rem;- background: var(--color-background);-}--.section {- margin-bottom: 2rem;- padding: 1rem;- border: 1px solid var(--color-border);- border-radius: 0.5rem;-}--.section-title {- font-size: 1.25rem;- font-weight: bold;- margin-bottom: 0.5rem;-}--.section-description {- color: #666;- margin-bottom: 1rem;-}--.field {- display: grid;- margin-block-start: 1rem;- grid-template-columns: 250px 1fr;- align-items: center;-}--.field.field-full {- grid-template-columns: 1fr;-}--.field-label {- display: flex;- flex-direction: column;-}--.field-title {- font-weight: bold;-}--.field-description {- color: #666;- font-size: 0.875rem;- margin-top: 0.25rem;- margin-bottom: 0.5rem;-}--.field-control {- width: 100%;- display: flex;- align-items: center;-}--input[type="text"] {- width: 100%;- padding: 0.5rem;- border: 1px solid #ddd;- border-radius: 0.25rem;- font-family: Rubik;-}--textarea {- width: 100%;- min-height: 100px;- padding: 0.5rem;- border: 1px solid #ddd;- border-radius: 0.25rem;- font-family: Roboto Mono;- scroll-behavior: smooth;- resize: none;- /*-/* scrollbar padding */+ transition: none;+ }++ .modal-overlay {+ position: fixed;+ top: 0;+ left: 0;+ right: 0;+ bottom: 0;+ background: rgba(0, 0, 0, 0.5);+ display: flex;+ align-items: center;+ justify-content: center;+ z-index: 2001;+ }++ .modal-container {+ background: var(--color-panel);+ color: var(--color-primary);+ border-radius: 0.5rem;+ width: 90%;+ max-width: 800px;+ max-height: 90vh;+ display: flex;+ flex-direction: column;+ }++ .modal-header {+ padding: 0.875rem 2rem;+ border-bottom: 1px solid var(--color-border);+ }++ .modal-content {+ padding: 1.5rem;+ overflow-y: auto;+ flex-grow: 1;background-clip: border-box;border: 6px solid transparent;transition: all 0.3s ease;-}--.toggle {- position: relative;- display: inline-block;- width: 60px;- height: 34px;- margin: 0;-}--.toggle input {- opacity: 0;- width: 0;- height: 0;-}--.toggler {- position: absolute;- cursor: pointer;- top: 0;- left: 0;- right: 0;- bottom: 0;- background-color: #ccc;- transition: .4s;- border-radius: 34px;-}--.toggler:before {- position: absolute;- content: "";- height: 26px;- width: 26px;- left: 4px;- bottom: 4px;- background-color: white;- transition: .4s;- border-radius: 50%;-}--input:checked+.toggler {- background-color: #2196F3;-}--input:checked+.toggler:before {- transform: translateX(26px);-}--input[type="range"] {- width: 100%;-}--.range-value {- min-width: 3em;- text-align: right;-}--#buttons-container {- display: flex;- gap: 0.875rem;- }--.btn {- padding: 0.7rem 1.5rem;- border-radius: 0.25rem;- cursor: pointer;- border: none;- font-size: 0.875rem;- font-family: Rubik;-}--.btn-ok {- background: #3270e2;- color: white;- transition: background 0.3s ease-in-out;-}--.btn-ok:hover{- background: #3265c0;-}--.btn-ok:active{- background: #345693;-}--.btn-cancel {- background: #ddd;- color: #333;- transition: background 0.3s ease-in-out;-}--.btn-cancel:hover {- background: #a6a6a6-}--.btn-cancel:active {- background: #808080-}--.btn-field {- background: #2196F3;- color: white;- width: fit-content;-}--.btn-field:disabled {- background: #ccc;- cursor: not-allowed;-}--select {- width: 100%;- padding: 0.5rem;- border: 1px solid #ddd;- border-radius: 0.25rem;- background-color: white;- font-size: inherit;- cursor: pointer;- font-family: Rubik;- outline: none;-}--select:disabled {- background-color: #f5f5f5;- cursor: not-allowed;-}--/* Style for navigation links */-nav ul {- list-style-type: none;- padding: 0;-}--nav ul li {- display: inline;- margin-right: 1rem;-}--nav ul li a {- text-decoration: none;- color: #2196F3;- font-weight: bold;-}--nav ul li a:hover {- text-decoration: underline;-}--@media (max-width: 768px) {- .modal-header {- padding: 0.7rem 2rem;- border-bottom: 1px solid var(--color-border);- }-- .modal-content {- padding: 1rem;- overflow-y: auto;- flex-grow: 1;- }-- .modal-footer {- padding: 1.5rem;- }-- #buttons-container {- display: flex;- gap: 1rem;- margin: 0 auto;- }-- .section {- margin-bottom: 1.5rem;- padding: 1rem;- border: 1px solid var(--color-border);- border-radius: 0.5rem;- }-- .field-control {- width: 100%;- }- .field-description {- padding-bottom: var(--spacing-sm);- }- .field {- padding-top: var(--spacing-xs);- padding-bottom: var(--spacing-xs);- display: block;- align-items: center;- }-}\ No newline at end of file+ margin-bottom: 0;+ padding-bottom: 0;+ }++ .modal-content::-webkit-scrollbar {+ width: 6px;+ height: 6px;+ }++ .modal-content::-webkit-scrollbar-track {+ background: transparent;+ margin: 4px 0;+ border-radius: 6px;+ }++ .modal-content::-webkit-scrollbar-thumb {+ background-color: rgba(155, 155, 155, 0.5);+ border-radius: 6px;+ transition: background-color 0.2s ease;+ }++ .modal-content::-webkit-scrollbar-thumb:hover {+ background-color: rgba(155, 155, 155, 0.7);+ }++ .modal-footer {+ padding: 1.5rem 2rem;+ border-top: 1px solid var(--color-border);+ display: flex;+ justify-content: flex-end;+ gap: 1rem;+ background: var(--color-background);+ }++ .section {+ margin-bottom: 2rem;+ padding: 1rem;+ border: 1px solid var(--color-border);+ border-radius: 0.5rem;+ }++ .section-title {+ font-size: 1.25rem;+ font-weight: bold;+ margin-bottom: 0.5rem;+ }++ .section-description {+ color: #666;+ margin-bottom: 1rem;+ }++ .field {+ display: grid;+ margin-block-start: 1rem;+ grid-template-columns: 250px 1fr;+ align-items: center;+ }++ .field.field-full {+ grid-template-columns: 1fr;+ }++ .field-label {+ display: flex;+ flex-direction: column;+ }++ .field-title {+ font-weight: bold;+ }++ .field-description {+ color: #666;+ font-size: 0.875rem;+ margin-top: 0.25rem;+ margin-bottom: 0.5rem;+ }++ .field-control {+ width: 100%;+ display: flex;+ align-items: center;+ }++ input[type="text"] {+ width: 100%;+ padding: 0.5rem;+ border: 1px solid #ddd;+ border-radius: 0.25rem;+ font-family: Rubik;+ }++ textarea {+ width: 100%;+ min-height: 100px;+ padding: 0.5rem;+ border: 1px solid #ddd;+ border-radius: 0.25rem;+ font-family: Roboto Mono;+ scroll-behavior: smooth;+ resize: none;+ /*-/* scrollbar padding */+ background-clip: border-box;+ border: 6px solid transparent;+ transition: all 0.3s ease;+ }++ .toggle {+ position: relative;+ display: inline-block;+ width: 60px;+ height: 34px;+ margin: 0;+ }++ .toggle input {+ opacity: 0;+ width: 0;+ height: 0;+ }++ .toggler {+ position: absolute;+ cursor: pointer;+ top: 0;+ left: 0;+ right: 0;+ bottom: 0;+ background-color: #ccc;+ transition: .4s;+ border-radius: 34px;+ }++ .toggler:before {+ position: absolute;+ content: "";+ height: 26px;+ width: 26px;+ left: 4px;+ bottom: 4px;+ background-color: white;+ transition: .4s;+ border-radius: 50%;+ }++ input:checked+.toggler {+ background-color: #2196F3;+ }++ input:checked+.toggler:before {+ transform: translateX(26px);+ }++ input[type="range"] {+ width: 100%;+ }++ .range-value {+ min-width: 3em;+ text-align: right;+ }++ #buttons-container {+ display: flex;+ gap: 0.875rem;+ }++ .btn {+ padding: 0.7rem 1.5rem;+ border-radius: 0.25rem;+ cursor: pointer;+ border: none;+ font-size: 0.875rem;+ font-family: Rubik;+ }++ .btn-ok {+ background: #3270e2;+ color: white;+ transition: background 0.3s ease-in-out;+ }++ .btn-ok:hover{+ background: #3265c0;+ }++ .btn-ok:active{+ background: #345693;+ }++ .btn-cancel {+ background: #ddd;+ color: #333;+ transition: background 0.3s ease-in-out;+ }++ .btn-cancel:hover {+ background: #a6a6a6+ }++ .btn-cancel:active {+ background: #808080+ }++ .btn-field {+ background: #2196F3;+ color: white;+ width: fit-content;+ }++ .btn-field:disabled {+ background: #ccc;+ cursor: not-allowed;+ }++ select {+ width: 100%;+ padding: 0.5rem;+ border: 1px solid #ddd;+ border-radius: 0.25rem;+ background-color: white;+ font-size: inherit;+ cursor: pointer;+ font-family: Rubik;+ outline: none;+ }++ select:disabled {+ background-color: #f5f5f5;+ cursor: not-allowed;+ }++ /* Style for navigation links */+ nav ul {+ list-style-type: none;+ padding: 0;+ }++ nav ul li {+ display: inline;+ margin-right: 1rem;+ }++ nav ul li a {+ text-decoration: none;+ color: #2196F3;+ font-weight: bold;+ }++ nav ul li a:hover {+ text-decoration: underline;+ }++ @media (max-width: 768px) {+ .modal-header {+ padding: 0.7rem 2rem;+ border-bottom: 1px solid var(--color-border);+ }++ .modal-content {+ padding: 1rem;+ overflow-y: auto;+ flex-grow: 1;+ }++ .modal-footer {+ padding: 1.5rem;+ }++ #buttons-container {+ display: flex;+ gap: 1rem;+ margin: 0 auto;+ }++ .section {+ margin-bottom: 1.5rem;+ padding: 1rem;+ border: 1px solid var(--color-border);+ border-radius: 0.5rem;+ }++ .field-control {+ width: 100%;+ }+ .field-description {+ padding-bottom: var(--spacing-sm);+ }+ .field {+ padding-top: var(--spacing-xs);+ padding-bottom: var(--spacing-xs);+ display: block;+ align-items: center;+ }+ }\ No newline at end of file