Skip to content

Commit

Permalink
Fix flex shrink
Browse files Browse the repository at this point in the history
  • Loading branch information
motoki317 committed Apr 17, 2024
1 parent bac4e8c commit 40ebcdf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions dashboard/src/components/UI/Badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const Badge = styled('div', {
height: '1.43em', // 20px
padding: '0 8px',
borderRadius: '9999px',
whiteSpace: 'nowrap',

...textVars.caption.regular,
},
Expand Down
2 changes: 1 addition & 1 deletion dashboard/src/components/templates/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const RowTitle = styled('h3', {
})
const RowData = styled('div', {
base: {
width: 'auto',
width: '100%',
display: 'flex',
flexDirection: 'row',
alignItems: 'center',
Expand Down
10 changes: 8 additions & 2 deletions dashboard/src/components/templates/app/AppDeployInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,18 @@ const DeployInfo = styled('div', {
})

const halfFit = style({
width: '50%',
overflow: 'hidden',
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
})

const shrinkFirst = style({
flexShrink: 0,
flexGrow: 1,
flexBasis: 0,
minWidth: 0,
})

const DataRows = styled('div', {
base: {
display: 'flex',
Expand Down Expand Up @@ -253,7 +259,7 @@ const AppDeployInfo: Component<{
<JumpButton href={`/apps/${props.app.id}/settings/build`} />
</DeployInfo>
<DeployInfo long>
<List.RowContent>
<List.RowContent class={shrinkFirst}>
<List.RowTitle>Source Commit</List.RowTitle>
<List.RowData>
{deployedCommitDisplay()}
Expand Down

0 comments on commit 40ebcdf

Please sign in to comment.