Skip to content

Commit 3417219

Browse files
committed
Sidebar - clean up styles
1 parent 86c1b09 commit 3417219

File tree

5 files changed

+4
-43
lines changed

5 files changed

+4
-43
lines changed

src/Sidebar/Sidebar.css

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@
1212
}
1313

1414
.sidebar-item-group {
15+
visibility: hidden;
1516
height: 0;
1617
opacity: 0;
1718
}
1819

1920
.sidebar-item-group-expanded {
21+
visibility: visible;
2022
height: unset;
2123
opacity: 1;
2224
}
@@ -57,7 +59,7 @@
5759
}
5860

5961
.sidebar-item:not(.sidebar-item-file) > button {
60-
margin-bottom: 16px;
62+
margin-bottom: 0px;
6163
}
6264

6365
.sidebar-item svg{
@@ -72,7 +74,3 @@
7274
.sidebar-item .chevron.rotate {
7375
transform: rotate(-90deg);
7476
}
75-
76-
.sidebar-item-file:not(:last-child), .sidebar-item-file:first-child {
77-
margin-bottom: 16px;
78-
}

src/Sidebar/SidebarItem.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export const SidebarItem: FC<SidebarItemProps> = ({
8787
<Chevron className={classnames('chevron', { rotate: !isOpen })} />
8888
// <img src={chevron} className={classnames('chevron', { rotate: !isOpen })} />
8989
);
90+
9091
const onToggleExpanded = (e: React.MouseEvent) => {
9192
e.preventDefault();
9293
setIsExpanded(previous =>

src/Sidebar/SidebarItemsFromData.css

Whitespace-only changes.

src/Sidebar/SidebarItemsFromData.tsx

Lines changed: 0 additions & 37 deletions
This file was deleted.

src/Sidebar/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
export * from './Sidebar';
22
export * from './SidebarItem';
3-
export * from './SidebarItemsFromData';

0 commit comments

Comments
 (0)