Skip to content

Commit

Permalink
fix(protocol-designer): flexDirection only change in deck setup'
Browse files Browse the repository at this point in the history
  • Loading branch information
jerader committed Nov 18, 2024
1 parent a5a7ee7 commit efb2e2a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions protocol-designer/src/organisms/SlotInformation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ export const SlotInformation: FC<SlotInformationProps> = ({
{liquids.length > 1 ? (
<ListItem type="noActive" width="max-content">
<ListItemDescriptor
changeFlexDirection={breakPointSize === 'medium'}
changeFlexDirection={
breakPointSize === 'medium' &&
pathLocation.pathname === '/designer'
}
type="default"
content={
<StyledText
Expand Down Expand Up @@ -147,11 +150,14 @@ interface StackInfoProps {
function StackInfo({ title, stackInformation }: StackInfoProps): JSX.Element {
const { t } = useTranslation('shared')
const breakPointSize = useDeckSetupWindowBreakPoint()
const pathLocation = useLocation()

return (
<ListItem type="noActive">
<ListItemDescriptor
changeFlexDirection={breakPointSize === 'medium'}
changeFlexDirection={
breakPointSize === 'medium' && pathLocation.pathname === '/designer'
}
type="default"
content={
<StyledText
Expand Down

0 comments on commit efb2e2a

Please sign in to comment.