AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.
HTML ai-agentcloudflarecloudflare-d1cloudflare-r2cloudflare-workersdockerelectronevernoteevernote-alternativeknowledge-basemcpnote-takingobsidian-alternativeoffline-firstpersonal-knowledge-basepwaself-hostedsqlitetiptapweb-clipper
fix(plugins): switch panel tabs with buttons instead of ToggleGroup
tianma-if7bee54173673
diff --git a/apps/web/src/components/plugins/PluginPanelChrome.tsx b/apps/web/src/components/plugins/PluginPanelChrome.tsxindex 17c13c4e..873f651f 100644--- a/apps/web/src/components/plugins/PluginPanelChrome.tsx+++ b/apps/web/src/components/plugins/PluginPanelChrome.tsx@@ -2,7 +2,6 @@ import type { PluginPanelAction, PluginPanelActionVariant, PluginPanelChrome, Plimport { Button } from "@/components/ui/button";import { Input } from "@/components/ui/input";import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";-import { ToggleGroup, ToggleGroupItem } from "@/components/ui/toggle-group";const actionVariant = (variant?: PluginPanelActionVariant): "outline" | "solid" | "ghost" => {@@ -42,18 +41,21 @@ const ToolbarItem = ({ item, onAction, onChange }: {}if (item.type === "tabs") {return (- <ToggleGroup- type="single"- value={item.value}- className="flex-wrap gap-1"- onValueChange={(value) => { if (value) onChange?.(item.key, value); }}- >+ <div className="flex flex-wrap gap-1" role="tablist">{item.options.map((option) => (- <ToggleGroupItem key={option.value} value={option.value} variant="outline" size="sm">+ <Button+ key={option.value}+ type="button"+ size="sm"+ variant={item.value === option.value ? "solid" : "outline"}+ className="h-8 px-2.5 text-xs"+ aria-selected={item.value === option.value}+ onClick={() => onChange?.(item.key, option.value)}+ >{option.label}- </ToggleGroupItem>+ </Button>))}- </ToggleGroup>+ </div>);}if (item.type === "select") {