From bb66914b1e63946b469de44ab700ee12cd1a8ea0 Mon Sep 17 00:00:00 2001 From: pewdiepie-archdaemon Date: Sat, 13 Jun 2026 23:00:16 +0900 Subject: [PATCH] Settings: clamp logo SVGs to 18px chip + endpoint dropdown gets logo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Provider SVGs in providers.js declare only viewBox (no width/height), so when injected into the 18×18 logo chips they fell back to the browser default of 300×150 and blew out the row. - CSS: SVGs inside settings logo chips (`span[id$="-logo"]`, the 18px wrappers in fallback rows) now stretch to 100%/100% of their container. - Added matching `-logo` chip next to the Endpoint dropdowns in Default Chat Model and Utility Model cards. - New `_syncEndpointLogo` helper mirrors the selected endpoint option's text label through providerLogo() (the select value is a UUID and wouldn't match anything otherwise), and `_fillEndpointSelect` calls it on each render. --- static/index.html | 2 ++ static/js/settings.js | 20 ++++++++++++++++++++ static/style.css | 11 +++++++++++ 3 files changed, 33 insertions(+) diff --git a/static/index.html b/static/index.html index db07c5041..d064804e6 100644 --- a/static/index.html +++ b/static/index.html @@ -1397,6 +1397,7 @@
+
@@ -1420,6 +1421,7 @@
+
diff --git a/static/js/settings.js b/static/js/settings.js index 0e058484d..c5c23390d 100644 --- a/static/js/settings.js +++ b/static/js/settings.js @@ -239,6 +239,7 @@ function _fillEndpointSelect(selectEl, endpoints, selected, keepBlank) { } else if (blankText !== null) { selectEl.value = ''; } + _syncEndpointLogo(selectEl); } // Mirror the selected model's provider logo into a sibling