Skip to content
Snippets Groups Projects
Unverified Commit 0454c0d7 authored by Anton Kulyk's avatar Anton Kulyk Committed by GitHub
Browse files

Fix collection menu padding (#21451)

parent ba977ccd
Branches
Tags
No related merge requests found
......@@ -77,6 +77,10 @@ export const CollectionsMoreIcon = styled(Icon)`
color: ${color("text-medium")};
`;
export const CollectionMenuList = styled.ul`
padding: 0.5rem;
`;
export const LoadingContainer = styled.div`
color: ${color("brand")};
text-align: center;
......
......@@ -25,6 +25,7 @@ import {
BrowseLink,
CollectionsMoreIconContainer,
CollectionsMoreIcon,
CollectionMenuList,
ProfileLinkContainer,
SidebarContentRoot,
SidebarHeading,
......@@ -141,7 +142,7 @@ function CollectionSectionHeading({
}: CollectionSectionHeadingProps) {
const renderMenu = useCallback(
({ onClose }) => (
<ul>
<CollectionMenuList>
{currentUser.is_superuser && (
<SidebarLink
icon={getCollectionIcon(PERSONAL_COLLECTIONS)}
......@@ -154,7 +155,7 @@ function CollectionSectionHeading({
<SidebarLink icon="view_archive" url={ARCHIVE_URL} onClick={onClose}>
{t`View archive`}
</SidebarLink>
</ul>
</CollectionMenuList>
),
[currentUser],
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment