| ... | ... | @@ -11,7 +11,7 @@ import type { EnvironmentPresentation } from "../../state/environments"; |
| 11 | 11 | import { EnvironmentMachineIcon } from "../EnvironmentMachineIcon"; |
| 12 | 12 | import { resolveEnvModeLabel } from "../BranchToolbar.logic"; |
| 13 | 13 | import { PULL_REQUEST_MERGE_METHOD_LABELS } from "../pullRequest/pullRequestDetail.logic"; |
| 14 | | import { Button } from "../ui/button"; |
| 14 | import { Button, InlineButton } from "../ui/button"; |
| 15 | 15 | import { Popover, PopoverPopup, PopoverTrigger } from "../ui/popover"; |
| 16 | 16 | import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip"; |
| 17 | 17 | import type { ProjectOverrideEntry, ScopedSettingsTarget } from "./scopedSettings"; |
| ... | ... | @@ -261,13 +261,12 @@ export function SettingInheritance({ |
| 261 | 261 | <div className="flex items-center justify-between gap-3 px-2 text-xs text-muted-foreground"> |
| 262 | 262 | <span>Overridden by</span> |
| 263 | 263 | {onClearOverrides ? ( |
| 264 | | <button |
| 265 | | type="button" |
| 266 | | className="cursor-pointer font-medium text-foreground underline-offset-2 hover:underline focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring" |
| 264 | <InlineButton |
| 265 | className="font-medium text-foreground underline-offset-2 hover:underline" |
| 267 | 266 | onClick={() => onClearOverrides(overriding)} |
| 268 | 267 | > |
| 269 | 268 | Reset {overriding.length === 1 ? "it" : "all"} |
| 270 | | </button> |
| 269 | </InlineButton> |
| 271 | 270 | ) : null} |
| 272 | 271 | </div> |
| 273 | 272 | <ul role="list" className="mt-0.5 text-sm"> |
| ... | ... | @@ -276,13 +275,12 @@ export function SettingInheritance({ |
| 276 | 275 | key={project.projectId} |
| 277 | 276 | className="grid grid-cols-[minmax(0,1fr)_auto] items-center gap-x-3 px-2 py-1" |
| 278 | 277 | > |
| 279 | | <button |
| 280 | | type="button" |
| 281 | | className="min-w-0 cursor-pointer truncate text-left text-foreground underline-offset-2 hover:underline focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring" |
| 278 | <InlineButton |
| 279 | className="min-w-0 justify-start text-left text-foreground underline-offset-2 hover:underline" |
| 282 | 280 | onClick={project.open} |
| 283 | 281 | > |
| 284 | | {project.label} |
| 285 | | </button> |
| 282 | <span className="truncate">{project.label}</span> |
| 283 | </InlineButton> |
| 286 | 284 | <span className="max-w-32 truncate text-muted-foreground tabular-nums"> |
| 287 | 285 | {isProjectScopedSettingKey(key) |
| 288 | 286 | ? formatValue(key, overrides[project.projectId]?.[key]) |