Skip to content

Commit c2dc6ca

Browse files
Lucifergenechristoph-jerolimov
authored andcommitted
fixed-review-comments
Signed-off-by: Lucifergene <[email protected]>
1 parent 8c7b4ac commit c2dc6ca

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

packages/app/src/components/Root/CustomSidebarItem.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ import { useSidebarSelectedBackgroundColor } from '../../hooks/useThemedConfig';
1010
const StyledSidebarItemWrapper = styled('div')<{
1111
selectedBackgroundColor: string;
1212
}>(({ selectedBackgroundColor }) => ({
13+
// Add spacing between sidebar items to prevent hover overlap
14+
marginBottom: '4px',
15+
1316
// Target the selected/active sidebar item
1417
'& a[aria-current="page"]': {
1518
backgroundColor: `${selectedBackgroundColor} !important`,
@@ -27,6 +30,10 @@ const GlobalSidebarStyles: React.FC<{ selectedBackgroundColor: string }> = ({
2730
[class*="BackstageSidebarItem-selected"] {
2831
background-color: ${selectedBackgroundColor} !important;
2932
}
33+
/* Add spacing between all sidebar items to prevent hover overlap */
34+
[class*="BackstageSidebarItem-root"] {
35+
margin-bottom: 4px;
36+
}
3037
`;
3138
document.head.appendChild(style);
3239

packages/app/src/components/Root/Root.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,7 @@ const SidebarScrollableContent = styled(Box)(({ theme }) => ({
211211
},
212212
},
213213

214-
// Firefox scrollbar - thin and auto-hiding
215-
scrollbarWidth: 'thin',
214+
// Firefox scrollbar to auto-hide it
216215
scrollbarColor: 'transparent transparent',
217216
'&:hover': {
218217
scrollbarColor: `${
@@ -237,15 +236,13 @@ const renderExpandIcon = (expand: boolean) => {
237236
fontSize="small"
238237
style={{
239238
display: 'flex',
240-
marginLeft: 8,
241239
}}
242240
/>
243241
) : (
244242
<ChevronRightIcon
245243
fontSize="small"
246244
style={{
247245
display: 'flex',
248-
marginLeft: 8,
249246
}}
250247
/>
251248
);

0 commit comments

Comments
 (0)