@antscorp/antsomi-ui 1.3.5-beta.306 → 1.3.5-beta.308
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.
- package/es/components/organism/LeftMenu/components/common/ChildMenu/index.js +2 -2
- package/es/components/organism/LeftMenu/components/common/ChildMenu/styled.js +2 -2
- package/es/components/organism/LeftMenu/hooks/useLeftMenu.js +1 -1
- package/es/components/organism/LeftMenu/styled.js +5 -2
- package/package.json +1 -1
|
@@ -21,7 +21,7 @@ import { useLeftMenuStore } from '../../../stores';
|
|
|
21
21
|
import { useNavigatePath } from '../../../hooks';
|
|
22
22
|
const styles = {
|
|
23
23
|
dropdownMenu: { width: '130px', padding: '8px 0' },
|
|
24
|
-
|
|
24
|
+
dotIcon: { marginTop: '2px', zIndex: 1000, flexShrink: 0, fontSize: 16 },
|
|
25
25
|
expandIcon: {
|
|
26
26
|
fontSize: ICON_SIZE,
|
|
27
27
|
color: 'inherit',
|
|
@@ -107,7 +107,7 @@ export const ChildMenu = memo(props => {
|
|
|
107
107
|
},
|
|
108
108
|
style: styles.dropdownMenu,
|
|
109
109
|
}, trigger: ['click'] },
|
|
110
|
-
React.createElement(Icon, { className: "child-menu-item-icon", type: "icon-ants-three-dot-vertical", style: styles.
|
|
110
|
+
React.createElement(Icon, { className: "child-menu-item-icon", type: "icon-ants-three-dot-vertical", style: styles.dotIcon }))))) : (React.createElement(LabelCustom, { ellipsis: { tooltip: label } }, label));
|
|
111
111
|
const renderIcon = () => {
|
|
112
112
|
var _a;
|
|
113
113
|
return !isNil(icon) || !isNil(logo_url) ? (React.createElement(Flex, { style: { flexShrink: 0 }, align: "center" }, !isNil(icon) ? (React.createElement(IconWrapper, null,
|
|
@@ -19,7 +19,7 @@ export const LabelCustom = styled(Typography.Text) `
|
|
|
19
19
|
color: inherit !important;
|
|
20
20
|
`;
|
|
21
21
|
export const OptionDropdownWrapper = styled(Flex) `
|
|
22
|
-
width:
|
|
22
|
+
width: 20px;
|
|
23
23
|
`;
|
|
24
24
|
OptionDropdownWrapper.defaultProps = { align: 'center' };
|
|
25
25
|
export const MenuWrapper = styled.div `
|
|
@@ -69,7 +69,7 @@ export const MenuWrapper = styled.div `
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
[role='icon'] {
|
|
72
|
-
font-size: ${ICON_SIZE}
|
|
72
|
+
font-size: ${ICON_SIZE};
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
& .menu-link {
|
|
@@ -58,7 +58,7 @@ export const useLeftMenu = (props) => {
|
|
|
58
58
|
token: auth === null || auth === void 0 ? void 0 : auth.token,
|
|
59
59
|
url: PERMISSION_API,
|
|
60
60
|
userId: auth === null || auth === void 0 ? void 0 : auth.userId,
|
|
61
|
-
accountId: auth === null || auth === void 0 ? void 0 : auth.
|
|
61
|
+
accountId: auth === null || auth === void 0 ? void 0 : auth.userId,
|
|
62
62
|
},
|
|
63
63
|
params: {
|
|
64
64
|
type: 'list-app',
|
|
@@ -184,11 +184,14 @@ export const FeatureMenuItem = styled.div `
|
|
|
184
184
|
export const ChildMenuWrapper = styled.div `
|
|
185
185
|
height: calc(100% - ${HEADER_HEIGHT}px);
|
|
186
186
|
margin-top: ${HEADER_HEIGHT}px;
|
|
187
|
-
|
|
188
|
-
width: ${({ isExpand }) => (isExpand ? '220px' : '0px')};
|
|
187
|
+
width: ${({ isExpand }) => (isExpand ? '210px' : '0px')};
|
|
189
188
|
padding: ${({ isExpand }) => (isExpand ? '10px' : '10px 0')};
|
|
190
189
|
transition: width 0.2s, padding 0.2s ease;
|
|
191
190
|
padding-left: 0px;
|
|
192
191
|
box-sizing: border-box;
|
|
193
192
|
z-index: 1;
|
|
193
|
+
|
|
194
|
+
&.antsomi-scroll-box {
|
|
195
|
+
margin-right: 0px !important;
|
|
196
|
+
}
|
|
194
197
|
`;
|