-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(protocol-designer): fix ListItemDescriptor content and description alignment issue #16588
Conversation
…n alignment issue fix ListItemDescriptor content and description alignment issue close RQA-3424
minWidth="13.75rem" | ||
alignItems={ALIGN_CENTER} | ||
gridGap={SPACING.spacing8} | ||
width="13.75rem" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Liquid is a special case since the description is a user input and we don't know the width of description.
) : ( | ||
'' | ||
) | ||
<Flex minWidth="13.75rem"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
13.75rem is Mel's request. ListItemDesciptor's description always keep 220px.
import type { FC } from 'react' | ||
import { FLEX_ROBOT_TYPE } from '@opentrons/shared-data' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import type { FC } from 'react' | |
import { FLEX_ROBOT_TYPE } from '@opentrons/shared-data' | |
import { FLEX_ROBOT_TYPE } from '@opentrons/shared-data' | |
import type { FC } from 'react' |
description={t('robotType')} | ||
description={ | ||
<Flex minWidth="13.75rem"> | ||
{' '} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{' '} |
content={pipetteInfo(leftPipette)} | ||
description={ | ||
<Flex minWidth="13.75rem"> | ||
{' '} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{' '} |
content={pipetteInfo(rightPipette)} | ||
description={ | ||
<Flex minWidth="13.75rem"> | ||
{' '} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{' '} |
content={isGripperAttached ? t('gripper') : t('na')} | ||
description={ | ||
<Flex minWidth="13.75rem"> | ||
{' '} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{' '} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm thanks for the quick fix! I left some minor clean up comments but might merge this in around 9 so the list item descriptor can be fixed for candidate B
Overview
fix ListItemDescriptor content and description alignment issue
remove
string
type fromdescription
andcontent
.There are 2 types in the design, but actually we need to use ListDescriptor in SlotInfo that has 118.5px as width.
Technically we can add a condition to switch 3 types but at this moment we don't know how Desktop app and other web application use it. For this change, we might need to write a little bit more lines, but it makes things easy since we can pass
JSX.Element
that we style or layout separately.design
https://www.figma.com/design/WbkiUyU8VhtKz0JSuIFA45/Feature%3A-Protocol-Designer-Phase-1?node-id=10092-334055&m=dev
SlotDetails
before
after
Protocol Overview
Protocol Metadata
Instruments
Liquid Definitions
Protocol Steps
Materials List
close RQA-3424
Test Plan and Hands on Testing
Changelog
Review requests
Risk assessment