Skip to content

Commit

Permalink
fix: account item overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zovomat committed May 11, 2022
1 parent 900d664 commit 3a13e7a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/views/sidebar/accordion-custom-component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ import { SharesInfoModal } from './shares-info-modal';
import ShareFolderModal from './share-folder-modal';
import { DataProps } from '../../types/commons';

const FittedRow = styled(Row)`
max-width: calc(100% - (2 * ${({ theme }): string => theme.sizes.padding.small}));
`;

const DropOverlayContainer = styled(Container)`
position: absolute;
width: calc(248px - ${(props): number => (props.folder.level - 2) * 16}px);
Expand Down Expand Up @@ -526,14 +530,14 @@ export const AccordionCustomComponent: FC<{ item: AccordionFolder }> = ({ item }
const dropdownItems = useFolderActions(item);

return folder.id === FOLDERS.USER_ROOT || folder.oname === ROOT_NAME ? (
<Row>
<FittedRow>
<Padding horizontal="small">
<Avatar label={accordionItem.label} colorLabel={accordionItem.iconColor} size="medium" />
</Padding>
<Tooltip label={accordionItem.label} placement="right" maxWidth="100%">
<AccordionItem item={accordionItem} />
</Tooltip>
</Row>
</FittedRow>
) : (
<>
<Drop
Expand Down

0 comments on commit 3a13e7a

Please sign in to comment.