Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

fix(ui): keep label as direct child on SidebarBotMenu items with trailing hints

jonathanwxh-cell848c537a558e
diff --git a/src/components/SidebarBotMenu.tsx b/src/components/SidebarBotMenu.tsx
index bf04d81d7c..e6541bfa45 100644
--- a/src/components/SidebarBotMenu.tsx
+++ b/src/components/SidebarBotMenu.tsx
@@ -204,12 +204,8 @@ export function BotContextMenu({
)}
>
{icon}
- {opts?.trailing ? (
- <>
- <span className="flex-1 truncate text-start">{label}</span>
- {opts.trailing}
- </>
- ) : label}
+ {label}
+ {opts?.trailing && <span className="ms-auto">{opts.trailing}</span>}
</button>
);
const divider = (key: string) => <div key={key} role="separator" className={MENU_ITEM_SEPARATOR} />;