Skip to content

Commit

Permalink
Merge pull request #220 from openedx/aadnan/PROD-2571
Browse files Browse the repository at this point in the history
fix: Responsiveness of Enrollment and Entitlement V2 table
  • Loading branch information
AliAdnanSohail authored Feb 20, 2022
2 parents c741481 + 3b7d3c1 commit 624285b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,7 @@ $darkCyan: #00262b;
.background-light-gray {
background: lightgrey;
}

.mb-60 {
margin-bottom: 60px;
}
2 changes: 1 addition & 1 deletion src/users/enrollments/v2/Enrollments.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ export default function Enrollments({
columns={columns}
data={tableData}
renderRowSubComponent={renderRowSubComponent}
styleName="custom-table"
styleName={tableData.length === 1 ? 'custom-table mb-60' : 'custom-table'}
defaultSortColumn={defaultSortColumn}
/>
)
Expand Down
2 changes: 1 addition & 1 deletion src/users/entitlements/v2/Entitlements.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ export default function Entitlements({
columns={columns}
data={tableData}
renderRowSubComponent={renderRowSubComponent}
styleName="custom-table"
styleName={tableData.length === 1 ? 'custom-table mb-60' : 'custom-table'}
/>
)}

Expand Down

0 comments on commit 624285b

Please sign in to comment.