mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-02 12:26:42 +00:00
Merge branch 'domain-revamp' of https://github.com/open-metadata/OpenMetadata into domain-revamp
This commit is contained in:
commit
cad41cd445
@ -83,6 +83,9 @@ const AddDomainForm = ({
|
||||
type === DomainFormType.DATA_PRODUCT
|
||||
? DEFAULT_DATA_PRODUCT_ICON
|
||||
: DEFAULT_DOMAIN_ICON,
|
||||
customStyles: {
|
||||
searchBoxWidth: 366,
|
||||
},
|
||||
},
|
||||
formItemLayout: FormItemLayout.HORIZONTAL,
|
||||
formItemProps: {
|
||||
|
@ -38,4 +38,5 @@ export interface MUIIconPickerProps {
|
||||
backgroundColor?: string;
|
||||
toolTip?: ReactNode;
|
||||
defaultIcon?: IconDefinition;
|
||||
customStyles?: Record<string, string | number>;
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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],
|
||||
|
Loading…
x
Reference in New Issue
Block a user