Skip to content

Commit

Permalink
Fix default value when collapsed
Browse files Browse the repository at this point in the history
  • Loading branch information
martmull committed Oct 15, 2024
1 parent 241e232 commit 934d214
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { css, useTheme } from '@emotion/react';
import { useTheme } from '@emotion/react';
import styled from '@emotion/styled';
import { motion } from 'framer-motion';
import { ReactNode, useState } from 'react';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ export const NavigationDrawerItemsCollapsedContainer = ({
isNavigationDrawerExpandedState,
);
const isExpanded = isNavigationDrawerExpanded || isSettingsPage;
let animate: AnimationControls | TargetAndTransition = { border: 'none' };
let animate: AnimationControls | TargetAndTransition = {
width: 'auto',
backgroundColor: 'transparent',
border: 'none',
};
if (!isExpanded) {
animate = { width: 24 };
if (isGroup) {
Expand Down

0 comments on commit 934d214

Please sign in to comment.