Skip to content

Commit

Permalink
bug(subscription) fix plan list display if long name and code
Browse files Browse the repository at this point in the history
  • Loading branch information
ansmonjol committed Nov 6, 2023
1 parent 42576cf commit abe9357
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/pages/CreateSubscription.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import {
DatePickerField,
TextInputField,
} from '~/components/form'
import { Item } from '~/components/form/ComboBox/ComboBoxItem'
import {
EditInvoiceDisplayName,
EditInvoiceDisplayNameRef,
Expand Down Expand Up @@ -266,9 +267,15 @@ const CreateSubscription = () => {
{
label: `${name} - (${code})`,
labelNode: (
<PlanItem>
{name} <Typography color="textPrimary">({code})</Typography>
</PlanItem>
<Item>
<Typography color="grey700" noWrap>
{name}
</Typography>
&nbsp;
<Typography color="textPrimary" noWrap>
({code})
</Typography>
</Item>
),
value: id,
disabled:
Expand Down Expand Up @@ -859,11 +866,6 @@ const ResponsiveButtonWrapper = styled.div`
padding: ${theme.spacing(3)} ${theme.spacing(12)};
`

const PlanItem = styled.span`
display: flex;
white-space: pre;
`

const FreemiumCard = styled(Card)`
display: flex;
justify-content: space-between;
Expand Down

0 comments on commit abe9357

Please sign in to comment.