Skip to content

Commit

Permalink
fix: table header centered labels
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed May 9, 2021
1 parent 44047f7 commit 7e32468
Show file tree
Hide file tree
Showing 16 changed files with 958 additions and 606 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ exports[`AttributeUsage overview snapshot 1`] = `
margin: 0;
min-width: 0;
margin-right: 4px;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.emotion-24 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ exports[`AttributesUsageDetails overview snapshot 1`] = `
margin: 0;
min-width: 0;
margin-right: 4px;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.emotion-18 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ exports[`AttributesUsageList overview snapshot 1`] = `
margin: 0;
min-width: 0;
margin-right: 4px;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.emotion-18 {
Expand Down Expand Up @@ -732,6 +735,9 @@ exports[`AttributesUsageList overview snapshot 1`] = `
margin: 0;
min-width: 0;
margin-right: 4px;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.emotion-18 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ exports[`ComponentUsage overview snapshot 1`] = `
margin: 0;
min-width: 0;
margin-right: 4px;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.emotion-24 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ exports[`ComponentUsageDetails overview snapshot 1`] = `
margin: 0;
min-width: 0;
margin-right: 4px;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.emotion-18 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ exports[`ComponentUsageList overview snapshot 1`] = `
margin: 0;
min-width: 0;
margin-right: 4px;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.emotion-18 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1072,6 +1072,9 @@ exports[`SidebarsPage overview snapshot 1`] = `
margin: 0;
min-width: 0;
margin-right: 4px;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.emotion-119 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ exports[`ComponentCommits overview snapshot 1`] = `
margin: 0;
min-width: 0;
margin-right: 4px;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.emotion-16 {
Expand Down Expand Up @@ -1199,6 +1202,9 @@ exports[`ComponentCommits pagination 0 snapshot 1`] = `
margin: 0;
min-width: 0;
margin-right: 4px;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.emotion-16 {
Expand Down Expand Up @@ -2263,6 +2269,9 @@ exports[`ComponentCommits pagination 1 snapshot 1`] = `
margin: 0;
min-width: 0;
margin-right: 4px;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.emotion-16 {
Expand Down Expand Up @@ -3327,6 +3336,9 @@ exports[`ComponentCommits pagination 2 snapshot 1`] = `
margin: 0;
min-width: 0;
margin-right: 4px;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.emotion-16 {
Expand Down Expand Up @@ -4391,6 +4403,9 @@ exports[`ComponentCommits pagination 3 snapshot 1`] = `
margin: 0;
min-width: 0;
margin-right: 4px;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.emotion-16 {
Expand Down Expand Up @@ -5279,6 +5294,9 @@ exports[`ComponentCommits pagination 4 snapshot 1`] = `
margin: 0;
min-width: 0;
margin-right: 4px;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.emotion-16 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ exports[`ExternalDependencies overview snapshot 1`] = `
margin: 0;
min-width: 0;
margin-right: 4px;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.emotion-17 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ exports[`LocalDependencies overview snapshot 1`] = `
margin: 0;
min-width: 0;
margin-right: 4px;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.emotion-14 {
Expand Down
21 changes: 21 additions & 0 deletions ui/blocks/src/PropsTable/__snapshots__/PropsTable.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,9 @@ exports[`PropsTable controls snapshot 1`] = `
margin: 0;
min-width: 0;
margin-right: 4px;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.emotion-32 {
Expand Down Expand Up @@ -1134,6 +1137,9 @@ exports[`PropsTable customTitle snapshot 1`] = `
margin: 0;
min-width: 0;
margin-right: 4px;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.emotion-27 {
Expand Down Expand Up @@ -1627,6 +1633,9 @@ exports[`PropsTable extraColumns snapshot 1`] = `
margin: 0;
min-width: 0;
margin-right: 4px;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.emotion-24 {
Expand Down Expand Up @@ -3384,6 +3393,9 @@ exports[`PropsTable notCollapsible snapshot 1`] = `
margin: 0;
min-width: 0;
margin-right: 4px;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.emotion-24 {
Expand Down Expand Up @@ -3841,6 +3853,9 @@ exports[`PropsTable overview snapshot 1`] = `
margin: 0;
min-width: 0;
margin-right: 4px;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.emotion-21 {
Expand Down Expand Up @@ -5412,6 +5427,9 @@ exports[`PropsTable subcomponents snapshot 1`] = `
margin: 0;
min-width: 0;
margin-right: 4px;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.emotion-22 {
Expand Down Expand Up @@ -5992,6 +6010,9 @@ exports[`PropsTable title snapshot 1`] = `
margin: 0;
min-width: 0;
margin-right: 4px;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.emotion-27 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ exports[`TestsCoverage overview snapshot 1`] = `
margin: 0;
min-width: 0;
margin-right: 4px;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.emotion-25 {
Expand Down Expand Up @@ -1407,6 +1410,9 @@ exports[`TestsCoverage pagination 0 snapshot 1`] = `
margin: 0;
min-width: 0;
margin-right: 4px;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.emotion-25 {
Expand Down Expand Up @@ -2358,6 +2364,9 @@ exports[`TestsCoverage pagination 1 snapshot 1`] = `
margin: 0;
min-width: 0;
margin-right: 4px;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.emotion-25 {
Expand Down Expand Up @@ -3114,6 +3123,9 @@ exports[`TestsCoverage pagination 2 snapshot 1`] = `
margin: 0;
min-width: 0;
margin-right: 4px;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.emotion-25 {
Expand Down Expand Up @@ -3870,6 +3882,9 @@ exports[`TestsCoverage pagination 3 snapshot 1`] = `
margin: 0;
min-width: 0;
margin-right: 4px;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.emotion-25 {
Expand Down Expand Up @@ -4785,6 +4800,9 @@ exports[`TestsCoverage pagination 4 snapshot 1`] = `
margin: 0;
min-width: 0;
margin-right: 4px;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.emotion-25 {
Expand Down
18 changes: 14 additions & 4 deletions ui/blocks/src/TestsResults/BaseTestsResults.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,26 @@ export const BaseTestsResults: FC<BaseTestsResultsProps> = ({
},
},
{
Header: 'Full name',
Header: <div sx={{ textAlign: 'center' }}>Full name</div>,
accessor: 'fullName',
Cell: ({
row: {
original: { ancestorTitles },
},
}) => <div>{ancestorTitles.join(' > ')}</div>,
}) => (
<div
sx={{
whiteSpace: 'nowrap',
textOverflow: 'ellipsis',
maxWidth: '400px',
}}
>
{ancestorTitles.join(' > ')}
</div>
),
},
{
Header: 'Title',
Header: <div sx={{ textAlign: 'center' }}>Title</div>,
accessor: 'title',
Cell: ({
row: {
Expand All @@ -134,7 +144,7 @@ export const BaseTestsResults: FC<BaseTestsResultsProps> = ({
}) => <div sx={{ fontWeight: 'bolder' }}>{title}</div>,
},
{
Header: 'Time(ms)',
Header: <div sx={{ textAlign: 'center' }}>Time(ms)</div>,
accessor: 'duration',
Cell: ({
row: {
Expand Down
Loading

0 comments on commit 7e32468

Please sign in to comment.