diff --git a/surfsense_web/components/assistant-ui/thread.tsx b/surfsense_web/components/assistant-ui/thread.tsx index 3776b77b7..ad6d461e1 100644 --- a/surfsense_web/components/assistant-ui/thread.tsx +++ b/surfsense_web/components/assistant-ui/thread.tsx @@ -1058,12 +1058,12 @@ const ComposerAction: FC = ({ isBlockedByOtherUser = false side="bottom" align="start" sideOffset={12} - className="w-[calc(100vw-2rem)] max-w-56 sm:max-w-72 sm:w-72 p-0 select-none" + className="w-[calc(100vw-2rem)] max-w-48 sm:max-w-56 sm:w-56 p-0 select-none" onOpenAutoFocus={(e) => e.preventDefault()} >
Manage Tools
= ({ isBlockedByOtherUser = false .filter((g) => !g.connectorIcon) .map((group) => (
-
+
{group.label}
{group.tools.map((tool) => { const isDisabled = disabledToolsSet.has(tool.name); const ToolIcon = getToolIcon(tool.name); const row = ( -
- - +
+ + {formatToolName(tool.name)} toggleTool(tool.name)} - className="shrink-0 scale-[0.6] sm:scale-75" + className="shrink-0 scale-50 sm:scale-[0.6]" />
); @@ -1106,7 +1106,7 @@ const ComposerAction: FC = ({ isBlockedByOtherUser = false ))} {groupedTools.some((g) => g.connectorIcon) && (
-
+
Connector Actions
{groupedTools @@ -1118,26 +1118,26 @@ const ComposerAction: FC = ({ isBlockedByOtherUser = false const allDisabled = toolNames.every((n) => disabledToolsSet.has(n)); const groupDef = TOOL_GROUPS.find((g) => g.label === group.label); const row = ( -
+
{iconInfo ? ( {iconInfo.alt} ) : ( - + )} - + {group.label} toggleToolGroup(toolNames)} - className="shrink-0 scale-[0.6] sm:scale-75" + className="shrink-0 scale-50 sm:scale-[0.6]" />
); @@ -1158,7 +1158,7 @@ const ComposerAction: FC = ({ isBlockedByOtherUser = false
)} {!filteredTools?.length && ( -
+
Loading tools...
)}