Fix cluster of bugs in the settings dialog. (#17628)

This commit is contained in:
Jacob Richman
2026-01-27 08:55:35 -08:00
committed by GitHub
parent e5145ab60d
commit 6be42be575
3 changed files with 185 additions and 69 deletions

View File

@@ -50,6 +50,8 @@ export interface BaseSettingsDialogProps {
// Header
/** Dialog title displayed at the top */
title: string;
/** Optional border color for the dialog */
borderColor?: string;
// Search (optional feature)
/** Whether to show the search input. Default: true */
@@ -107,6 +109,7 @@ export interface BaseSettingsDialogProps {
*/
export function BaseSettingsDialog({
title,
borderColor,
searchEnabled = true,
searchPlaceholder = 'Search to filter',
searchBuffer,
@@ -390,7 +393,7 @@ export function BaseSettingsDialog({
return (
<Box
borderStyle="round"
borderColor={theme.border.default}
borderColor={borderColor ?? theme.border.default}
flexDirection="row"
padding={1}
width="100%"