mirror of
https://github.com/coder/coder.git
synced 2026-10-16 14:48:56 +08:00
fix(site/src/pages/AISettingsPage): align collapsible section chevron with title (#30654)
Moves the expand/collapse chevron in the AI settings collapsible sections (Cost estimate, Provider configuration, and the MCP server form equivalents) from `mt-0.5` to `mt-1` so it centers on the title's first line. The `text-sm` title has a 24px line-height and the icon is 16px, so it needs a 4px offset. Fixes DES-22168 > Generated by Coder Agents on behalf of @tracyjohnsonux.
This commit is contained in:
+2
-2
@@ -61,9 +61,9 @@ export const CollapsibleSection: React.FC<{
|
||||
>
|
||||
<CollapsibleTrigger className="flex w-full cursor-pointer items-start gap-2 border-0 bg-transparent p-0 text-left transition-colors hover:text-content-primary">
|
||||
{open ? (
|
||||
<ChevronDownIcon className="mt-0.5 size-4 shrink-0 text-content-primary" />
|
||||
<ChevronDownIcon className="mt-1 size-4 shrink-0 text-content-primary" />
|
||||
) : (
|
||||
<ChevronRightIcon className="mt-0.5 size-4 shrink-0 text-content-primary" />
|
||||
<ChevronRightIcon className="mt-1 size-4 shrink-0 text-content-primary" />
|
||||
)}
|
||||
<div>
|
||||
<h3 className="m-0 text-sm font-medium text-content-primary">
|
||||
|
||||
@@ -78,9 +78,9 @@ const CollapsibleSection: React.FC<{
|
||||
>
|
||||
<CollapsibleTrigger className="flex w-full cursor-pointer items-start gap-2 border-0 bg-transparent p-0 text-left transition-colors hover:text-content-primary">
|
||||
{open ? (
|
||||
<ChevronDownIcon className="mt-0.5 size-4 shrink-0 text-content-secondary" />
|
||||
<ChevronDownIcon className="mt-1 size-4 shrink-0 text-content-secondary" />
|
||||
) : (
|
||||
<ChevronRightIcon className="mt-0.5 size-4 shrink-0 text-content-secondary" />
|
||||
<ChevronRightIcon className="mt-1 size-4 shrink-0 text-content-secondary" />
|
||||
)}
|
||||
<div>
|
||||
<h3 className="m-0 text-sm font-medium text-content-primary">
|
||||
|
||||
Reference in New Issue
Block a user