ui(admin): fix user sidebar alignment when collapsed

This commit is contained in:
Matthew Penner 2021-08-02 10:26:29 -06:00
parent fffe3a7f8b
commit 27ed07e81f

View file

@ -80,6 +80,7 @@ const Sidebar = styled.div<{ collapsed?: boolean }>`
& > div.user {
${tw`h-16 w-full flex items-center bg-neutral-700`};
${props => !props.collapsed && tw`mt-auto px-5`};
${props => props.collapsed && tw`justify-center`};
& > div, a {
${props => props.collapsed && tw`hidden`};