Skip to content

Build your personal knowledge base with Trilium Notes

feat(options): improve display of endpoint URL

Elian Doran3217632c577b
diff --git a/apps/client/src/widgets/type_widgets/options/llm.css b/apps/client/src/widgets/type_widgets/options/llm.css
index 494cd5f370..dfeb9dcbda 100644
--- a/apps/client/src/widgets/type_widgets/options/llm.css
+++ b/apps/client/src/widgets/type_widgets/options/llm.css
@@ -13,8 +13,13 @@
listing its URLs as read-only, selectable fields. */
.mcp-endpoint-list {
display: flex;
+ gap: 1em;
flex-direction: column;
- gap: 0.75em;
+
+ @media (min-width: 992px) {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ }
}
.mcp-endpoint-group {
diff --git a/apps/client/src/widgets/type_widgets/options/llm.tsx b/apps/client/src/widgets/type_widgets/options/llm.tsx
index 76c0cb337b..add8ef9264 100644
--- a/apps/client/src/widgets/type_widgets/options/llm.tsx
+++ b/apps/client/src/widgets/type_widgets/options/llm.tsx
@@ -168,7 +168,7 @@ function McpSettings() {
{mcpEnabled && (
<>
- <OptionsRow name="mcp-endpoint" label={t("llm.mcp_endpoint_title")} description={t("llm.mcp_endpoint_description")}>
+ <OptionsRow name="mcp-endpoint" label={t("llm.mcp_endpoint_title")} description={t("llm.mcp_endpoint_description")} stacked>
<div class="mcp-endpoint-list">
<McpEndpointGroup label={t("llm.mcp_endpoint_this_device")} urls={[localUrl]} />
{networkUrls.length > 0 && (