fix(craft): keep app policy controls aligned beside long descriptions (#16177)

This commit is contained in:
Wenxi authored and GitHub committed 2026-10-16 22:30:29 +00:00
1 parent 69ffbd71e8
commit 9a7da2c494
2 files changed
+11 -3

No files matched your search

@@ -43,6 +43,8 @@ Their reads auto-approve and their writes require approval by default.
The permissions selector shows Default when effective policies match
the catalog and Custom for mixed overrides. Default restores each catalog policy.
The shared MCP editor uses the same control, with Ask as each tool’s default.
Policy rows keep controls on the right. Names and descriptions wrap within the
remaining width so the full text stays visible without hover or expansion.
On Onyx Cloud, most built-in apps already have Onyx-managed OAuth
credentials, so the admin can only toggle them on and set policy. Custom apps
on Cloud keep a normal credential form, as does a built-in whose OAuth client
@@ -354,9 +354,15 @@ function PolicyEditor({ items, policies, onChange }: PolicyEditorProps) {
key={item.id}
className="flex items-center justify-between gap-3"
>
<div className="flex flex-col">
<Text font="main-ui-action">{item.name}</Text>
<Text font="secondary-body" color="text-03">
<div className="flex min-w-0 flex-1 flex-col">
<Text font="main-ui-action" wordWrap="wrap-anywhere">
{item.name}
</Text>
<Text
font="secondary-body"
color="text-03"
wordWrap="wrap-anywhere"
>
{item.description}
</Text>
</div>