From 10ac60033700058400fe967e9f21ca103156be9a Mon Sep 17 00:00:00 2001 From: Aleksander Grygier Date: Mon, 17 Aug 2026 10:59:55 +0200 Subject: [PATCH] ui : fix formatting in chat form and model selector --- .../ChatFormActionAddReasoningSubmenu.svelte | 116 +++++++++--------- .../app/models/ModelsSelectorOption.svelte | 2 +- 2 files changed, 59 insertions(+), 59 deletions(-) diff --git a/tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddReasoningSubmenu.svelte b/tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddReasoningSubmenu.svelte index 16f07ae804..b2b1024458 100644 --- a/tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddReasoningSubmenu.svelte +++ b/tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddReasoningSubmenu.svelte @@ -9,66 +9,66 @@ - - {#if reasoning.isReasoningActive} - - {:else if reasoning.isOff} - - {:else} - - {/if} + + {#if reasoning.isReasoningActive} + + {:else if reasoning.isOff} + + {:else} + + {/if} - - Reasoning - - - {reasoning.currentEffort} - - - - - - {#each reasoning.levels as level (level.value)} - {@const tokenLabel = reasoning.tokenLabel(level)} - reasoning.select(level)} - > - {#if reasoning.isSelected(level)} - - {:else} -
- {/if} + Reasoning - {level.label} + + {reasoning.currentEffort} + + +
- {#if tokenLabel} - - {tokenLabel} - - {/if} + + {#each reasoning.levels as level (level.value)} + {@const tokenLabel = reasoning.tokenLabel(level)} + reasoning.select(level)} + > + {#if reasoning.isSelected(level)} + + {:else} +
+ {/if} - {#if level.hasInfo} - - - - - -

Maximum reasoning effort with extended context usage

-
-
- {/if} -
- {/each} -
-
+ {level.label} + + {#if tokenLabel} + + {tokenLabel} + + {/if} + + {#if level.hasInfo} + + + + + +

Maximum reasoning effort with extended context usage

+
+
+ {/if} + + {/each} + + diff --git a/tools/ui/src/lib/components/app/models/ModelsSelectorOption.svelte b/tools/ui/src/lib/components/app/models/ModelsSelectorOption.svelte index 20f10df356..5ea0eb1972 100644 --- a/tools/ui/src/lib/components/app/models/ModelsSelectorOption.svelte +++ b/tools/ui/src/lib/components/app/models/ModelsSelectorOption.svelte @@ -86,7 +86,7 @@ {hideOrgName} aliases={option.aliases} tags={option.tags} - modalities={modalities} + {modalities} {supportsThinking} showRawTooltip class="flex-1"