Skip to content

Commit

Permalink
fix row right maxWidth
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoskolodny committed Jul 7, 2023
1 parent 24fc3dd commit 693c9b0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/list.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ export const control = style([
},
]);

export const right = style({display: 'flex', marginLeft: 16, maxWidth: '40%'});
export const right = style({display: 'flex', marginLeft: 16});
export const rightRestrictedWidth = style({maxWidth: '40%'});

export const detailRight = style({paddingLeft: 8});
export const detail = style({textAlign: 'right'});
Expand Down
7 changes: 6 additions & 1 deletion src/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,12 @@ const Content: React.FC<ContentProps> = ({

{renderBadge()}

<div className={classNames({[styles.right]: !!detail || type !== 'basic'})}>
<div
className={classNames({
[styles.right]: !!detail || type !== 'basic',
[styles.rightRestrictedWidth]: !!detail,
})}
>
{detail && (
<div className={classNames(styles.center, styles.detail, {[styles.disabled]: disabled})}>
<Text2 regular color={vars.colors.textSecondary} hyphens="auto">
Expand Down

0 comments on commit 693c9b0

Please sign in to comment.