mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-02 20:35:25 +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
|
type === DomainFormType.DATA_PRODUCT
|
||||||
? DEFAULT_DATA_PRODUCT_ICON
|
? DEFAULT_DATA_PRODUCT_ICON
|
||||||
: DEFAULT_DOMAIN_ICON,
|
: DEFAULT_DOMAIN_ICON,
|
||||||
|
customStyles: {
|
||||||
|
searchBoxWidth: 366,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
formItemLayout: FormItemLayout.HORIZONTAL,
|
formItemLayout: FormItemLayout.HORIZONTAL,
|
||||||
formItemProps: {
|
formItemProps: {
|
||||||
|
@ -38,4 +38,5 @@ export interface MUIIconPickerProps {
|
|||||||
backgroundColor?: string;
|
backgroundColor?: string;
|
||||||
toolTip?: ReactNode;
|
toolTip?: ReactNode;
|
||||||
defaultIcon?: IconDefinition;
|
defaultIcon?: IconDefinition;
|
||||||
|
customStyles?: Record<string, string | number>;
|
||||||
}
|
}
|
||||||
|
@ -44,6 +44,7 @@ const MUIIconPicker: FC<MUIIconPickerProps> = ({
|
|||||||
toolTip,
|
toolTip,
|
||||||
defaultIcon,
|
defaultIcon,
|
||||||
onChange,
|
onChange,
|
||||||
|
customStyles,
|
||||||
}) => {
|
}) => {
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
@ -91,6 +92,7 @@ const MUIIconPicker: FC<MUIIconPickerProps> = ({
|
|||||||
searchPlaceholder: t('label.search'),
|
searchPlaceholder: t('label.search'),
|
||||||
onSearchChange: setSearchQuery,
|
onSearchChange: setSearchQuery,
|
||||||
initialSearchQuery: '',
|
initialSearchQuery: '',
|
||||||
|
customStyles,
|
||||||
});
|
});
|
||||||
|
|
||||||
const filteredIcons = searchQuery
|
const filteredIcons = searchQuery
|
||||||
|
@ -21,6 +21,7 @@ interface SearchConfig {
|
|||||||
searchPlaceholder: string;
|
searchPlaceholder: string;
|
||||||
onSearchChange: (query: string) => void;
|
onSearchChange: (query: string) => void;
|
||||||
initialSearchQuery?: string;
|
initialSearchQuery?: string;
|
||||||
|
customStyles?: Record<string, string | number>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const useSearch = (config: SearchConfig) => {
|
export const useSearch = (config: SearchConfig) => {
|
||||||
@ -73,7 +74,7 @@ export const useSearch = (config: SearchConfig) => {
|
|||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
sx={{
|
sx={{
|
||||||
width: 354,
|
width: config.customStyles?.searchBoxWidth ?? 354,
|
||||||
'& .MuiOutlinedInput-root': {
|
'& .MuiOutlinedInput-root': {
|
||||||
width: '100%',
|
width: '100%',
|
||||||
backgroundColor: theme.palette.allShades?.blueGray?.[40],
|
backgroundColor: theme.palette.allShades?.blueGray?.[40],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user