Merge branch 'domain-revamp' of https://github.com/open-metadata/OpenMetadata into domain-revamp

This commit is contained in:
Satish 2025-10-01 15:43:28 +05:30
commit cad41cd445
4 changed files with 8 additions and 1 deletions

View File

@ -83,6 +83,9 @@ const AddDomainForm = ({
type === DomainFormType.DATA_PRODUCT
? DEFAULT_DATA_PRODUCT_ICON
: DEFAULT_DOMAIN_ICON,
customStyles: {
searchBoxWidth: 366,
},
},
formItemLayout: FormItemLayout.HORIZONTAL,
formItemProps: {

View File

@ -38,4 +38,5 @@ export interface MUIIconPickerProps {
backgroundColor?: string;
toolTip?: ReactNode;
defaultIcon?: IconDefinition;
customStyles?: Record<string, string | number>;
}

View File

@ -44,6 +44,7 @@ const MUIIconPicker: FC<MUIIconPickerProps> = ({
toolTip,
defaultIcon,
onChange,
customStyles,
}) => {
const theme = useTheme();
const { t } = useTranslation();
@ -91,6 +92,7 @@ const MUIIconPicker: FC<MUIIconPickerProps> = ({
searchPlaceholder: t('label.search'),
onSearchChange: setSearchQuery,
initialSearchQuery: '',
customStyles,
});
const filteredIcons = searchQuery

View File

@ -21,6 +21,7 @@ interface SearchConfig {
searchPlaceholder: string;
onSearchChange: (query: string) => void;
initialSearchQuery?: string;
customStyles?: Record<string, string | number>;
}
export const useSearch = (config: SearchConfig) => {
@ -73,7 +74,7 @@ export const useSearch = (config: SearchConfig) => {
},
}}
sx={{
width: 354,
width: config.customStyles?.searchBoxWidth ?? 354,
'& .MuiOutlinedInput-root': {
width: '100%',
backgroundColor: theme.palette.allShades?.blueGray?.[40],