Web:Shared:ContextMenu:Fixed hover styles in the context menu when it has a scroll. The hover effect strip did not reach the end of the modal on the right side.
This commit is contained in:
parent
671bdf07d4
commit
e2e9ba59a5
@ -277,6 +277,15 @@ const StyledContextMenu = styled.div<{
|
||||
margin: ${(props) => props.theme.dropDownItem.margin};
|
||||
}
|
||||
|
||||
.p-contextmenu .scroll-body .p-menuitem {
|
||||
margin-right: ${(props) => `-${props.theme.scrollbar.paddingInlineEnd}`};
|
||||
|
||||
@media ${mobile} {
|
||||
margin-right: ${(props) =>
|
||||
`-${props.theme.scrollbar.paddingInlineEndMobile}`};
|
||||
}
|
||||
}
|
||||
|
||||
.p-menuitem-icon {
|
||||
max-height: ${(props) => props.theme.dropDownItem.lineHeight};
|
||||
|
||||
|
@ -12,13 +12,14 @@ const StyledScrollbar = styled(Scrollbar)<{ $fixedSize?: boolean }>`
|
||||
}
|
||||
|
||||
.scroll-body {
|
||||
padding-inline-end: 17px !important;
|
||||
padding-inline-end: ${(props) => props.theme.scrollbar.paddingInlineEnd};
|
||||
position: relative;
|
||||
outline: none;
|
||||
tab-index: -1;
|
||||
|
||||
@media ${mobile} {
|
||||
padding-inline-end: 8px !important;
|
||||
padding-inline-end: ${(props) =>
|
||||
props.theme.scrollbar.paddingInlineEndMobile};
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -613,6 +613,8 @@ export const getBaseTheme = () => {
|
||||
bgColor: "rgba(6, 22, 38, 0.16)",
|
||||
hoverBgColor: "rgba(6, 22, 38, 0.32)",
|
||||
pressBgColor: "rgba(6, 22, 38, 0.5)",
|
||||
paddingInlineEnd: "17px !important",
|
||||
paddingInlineEndMobile: "8px !important",
|
||||
},
|
||||
|
||||
modalDialog: {
|
||||
|
@ -583,6 +583,8 @@ const Dark: TTheme = {
|
||||
bgColor: "rgba(20, 20, 20, 0.4)",
|
||||
hoverBgColor: "rgba(20, 20, 20, 0.64)",
|
||||
pressBgColor: "rgba(20, 20, 20, 0.8)",
|
||||
paddingInlineEnd: "17px !important",
|
||||
paddingInlineEndMobile: "8px !important",
|
||||
},
|
||||
|
||||
modalDialog: {
|
||||
|
Loading…
Reference in New Issue
Block a user