From 549630bae10f1812f96cd50afdc47bb2bf6fb665 Mon Sep 17 00:00:00 2001 From: Aleksander Grygier Date: Tue, 1 Sep 2026 12:50:55 +0200 Subject: [PATCH] feat: render capability icons in the meta row of multi-line model ids With iconsOnNewLine, the tool use / reasoning / modality icons now sit in the second row, in line with context length and disk size, instead of competing with the name on the identity line. Icons render through a shared snippet in both positions; single-line usages keep the icons inline after the name. Assisted-by: pi:GLM-5.3-Flash --- .../lib/components/app/models/ModelId.svelte | 132 +++++++++--------- 1 file changed, 69 insertions(+), 63 deletions(-) diff --git a/tools/ui/src/lib/components/app/models/ModelId.svelte b/tools/ui/src/lib/components/app/models/ModelId.svelte index 8ccbcdb664..341a807b04 100644 --- a/tools/ui/src/lib/components/app/models/ModelId.svelte +++ b/tools/ui/src/lib/components/app/models/ModelId.svelte @@ -93,6 +93,72 @@ {#if resolvedShowRaw} {:else} + {#snippet capabilityIcons()} + {#if supportsToolUse} + + + + + + +

Tool use

+
+
+ {/if} + + {#if supportsThinking && !hideReasoning} + + + + + + +

Reasoning

+
+
+ {/if} + + {#if hasModalityIcons && !hideModalities} + + {#if modalities?.vision} + + + + + + +

Vision

+
+
+ {/if} + + {#if modalities?.video} + + + + + +

Video

+
+
+ {/if} + + {#if modalities?.audio} + + + + + + +

Audio

+
+
+ {/if} +
+ {/if} + {/snippet} + {#snippet nameAndBadges()} {#if !hideName} @@ -164,72 +230,12 @@ {@render nameAndBadges()} {/if} - {#if supportsToolUse} - - - - - - -

Tool use

-
-
- {/if} - - {#if supportsThinking && !hideReasoning} - - - - - - -

Reasoning

-
-
- {/if} - - {#if hasModalityIcons && !hideModalities} - - {#if modalities?.vision} - - - - - - -

Vision

-
-
- {/if} - - {#if modalities?.video} - - - - - -

Video

-
-
- {/if} - - {#if modalities?.audio} - - - - - - -

Audio

-
-
- {/if} -
- {/if} + {#if !iconsOnNewLine}{@render capabilityIcons()}{/if}
+ {#if iconsOnNewLine}{@render capabilityIcons()}{/if} + {#if contextLength}