Skip to content
This repository has been archived by the owner on Apr 21, 2024. It is now read-only.

Commit

Permalink
fix(SidebarItem): flex the container
Browse files Browse the repository at this point in the history
  • Loading branch information
talkor committed Oct 23, 2023
1 parent 5b9eef4 commit 309f083
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions src/components/sidebar-item/sidebar-item.module.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
.name {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
.sidebarItem {
flex: 1;
min-width: 0;

.name {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
min-width: 0;
}
}
2 changes: 1 addition & 1 deletion src/components/sidebar-item/sidebar-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface SidebarItemProps {

const SidebarItem: React.FC<SidebarItemProps> = ({ children, status }) => {
return (
<Flex justify={Flex.justify.SPACE_BETWEEN} gap={Flex.gaps.MEDIUM}>
<Flex className={styles.sidebarItem} justify={Flex.justify.SPACE_BETWEEN} gap={Flex.gaps.MEDIUM}>
<span className={styles.name}>{children}</span>
<StatusTag type={status} />
</Flex>
Expand Down

0 comments on commit 309f083

Please sign in to comment.