@antscorp/antsomi-ui 1.3.7-beta.56 → 1.3.7-beta.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -534,5 +534,6 @@ export const AccountSharing = props => {
|
|
|
534
534
|
backgroundColor: THEME.token?.blue1_2,
|
|
535
535
|
padding: '20px 15px',
|
|
536
536
|
width: '400px',
|
|
537
|
+
maxHeight: 'calc(100dvh - 80px)',
|
|
537
538
|
}, children: _jsxs(TriggerPopoverStyled, { children: [_jsx("div", { className: "brand-logo", children: currentNetwork?.logo ? _jsx("img", { src: currentNetwork.logo, alt: "" }) : null }), _jsx("div", { className: "avatar", children: infoAccount ? _jsx("img", { src: infoAccount.avatar, alt: "" }) : null })] }) }), _jsx(AccountProfile, { accountId: accountId, iamDomain: formatDomain, token: token, isDisabledEdit: false, open: openAccountProfile, onClose: () => setOpenAccountProfile(false) })] }));
|
|
538
539
|
};
|
|
@@ -270,7 +270,7 @@ export const PackageSharingStyled = styled.div `
|
|
|
270
270
|
grid-template-columns: 1fr 1fr 1fr;
|
|
271
271
|
gap: 15px;
|
|
272
272
|
margin-top: 26px;
|
|
273
|
-
max-height: 335px;
|
|
273
|
+
max-height: min(335px, calc(100dvh - 380px));
|
|
274
274
|
overflow-y: auto;
|
|
275
275
|
padding: 0 7px;
|
|
276
276
|
.network-item {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { StyleProviderProps } from '@ant-design/cssinjs';
|
|
1
2
|
import { ConfigProviderProps as AntdConfigProviderProps } from 'antd/es/config-provider';
|
|
2
3
|
import React, { ReactNode } from 'react';
|
|
3
4
|
import '@antscorp/antsomi-ui/es/assets/css/main.scss';
|
|
@@ -10,6 +11,7 @@ interface ConfigProviderProps extends Omit<AntdConfigProviderProps, 'locale'> {
|
|
|
10
11
|
locale?: TLocale;
|
|
11
12
|
appConfig?: AppConfigProviderProps;
|
|
12
13
|
globalStyle?: GlobalStyleProps;
|
|
14
|
+
styleProviderProps?: StyleProviderProps;
|
|
13
15
|
}
|
|
14
16
|
declare const ConfigProvider: React.FC<ConfigProviderProps>;
|
|
15
17
|
export default ConfigProvider;
|
|
@@ -36,7 +36,7 @@ dayjs.extend(timezone);
|
|
|
36
36
|
dayjs.extend(relativeTime);
|
|
37
37
|
const ConfigProvider = props => {
|
|
38
38
|
// Props
|
|
39
|
-
const { children, locale, appConfig, theme = THEME, prefixCls = ANTSOMI_COMPONENT_PREFIX_CLS, globalStyle = {}, ...restOfProps } = props;
|
|
39
|
+
const { children, locale, appConfig, theme = THEME, prefixCls = ANTSOMI_COMPONENT_PREFIX_CLS, globalStyle = {}, styleProviderProps = {}, ...restOfProps } = props;
|
|
40
40
|
// Refs
|
|
41
41
|
const ref = useRef(null);
|
|
42
42
|
// Handlers
|
|
@@ -81,6 +81,6 @@ const ConfigProvider = props => {
|
|
|
81
81
|
const containers = document.getElementsByClassName('antsomi-scroll-box');
|
|
82
82
|
handleScrollAction(Array.from(containers));
|
|
83
83
|
}, []);
|
|
84
|
-
return (_jsx(AntdConfigProvider, { theme: theme, prefixCls: prefixCls, ...restOfProps, children: _jsx(AppConfigProvider, { value: appConfig, children: _jsx("div", { ref: ref, children: _jsxs(App, { children: [_jsx(GlobalStyle, { ...globalStyle }), _jsx(StyleProvider, { hashPriority: "high", children: children })] }) }) }) }));
|
|
84
|
+
return (_jsx(AntdConfigProvider, { theme: theme, prefixCls: prefixCls, ...restOfProps, children: _jsx(AppConfigProvider, { value: appConfig, children: _jsx("div", { ref: ref, children: _jsxs(App, { children: [_jsx(GlobalStyle, { ...globalStyle }), _jsx(StyleProvider, { ...styleProviderProps, hashPriority: "high", children: children })] }) }) }) }));
|
|
85
85
|
};
|
|
86
86
|
export default ConfigProvider;
|