Fixed color and alignment in data table (#103)
* Fixed color and alignment in the data table * fix: fixed column width
This commit is contained in:
@@ -7,3 +7,4 @@
|
||||
@import "~@edx/frontend-component-footer/dist/footer";
|
||||
|
||||
@import "proctored-exam-settings/proctoredExamSettings";
|
||||
@import "pages-and-resources/discussions/app-list/AppList";
|
||||
@@ -77,10 +77,13 @@ function AppList({ intl }) {
|
||||
{intl.formatMessage(messages.supportedFeatures)}
|
||||
</h3>
|
||||
|
||||
<FeaturesTable
|
||||
apps={apps}
|
||||
features={features}
|
||||
/>
|
||||
<div className="app-list-data-table">
|
||||
<FeaturesTable
|
||||
apps={apps}
|
||||
features={features}
|
||||
/>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
27
src/pages-and-resources/discussions/app-list/AppList.scss
Normal file
27
src/pages-and-resources/discussions/app-list/AppList.scss
Normal file
@@ -0,0 +1,27 @@
|
||||
.app-list-data-table {
|
||||
table {
|
||||
table-layout: fixed;
|
||||
}
|
||||
|
||||
.pgn__data-table-container {
|
||||
tr {
|
||||
th {
|
||||
background-color: $white;
|
||||
text-align: center;
|
||||
|
||||
.d-flex, span {
|
||||
display: block !important;
|
||||
}
|
||||
}
|
||||
|
||||
td {
|
||||
background-color: $white;
|
||||
|
||||
.pgn__data-table-cell-wrap {
|
||||
max-width: unset;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,11 +19,11 @@ function FeaturesTable({ apps, features, intl }) {
|
||||
// If our app's set of feature Ids includes this feature, return a checkmark.
|
||||
// i.e, if this app has the current feature, check it!
|
||||
appCheckmarkCells[app.id] = app.featureIds.includes(feature.id) ? (
|
||||
<div key={`${app.id}&${feature.id}`}>
|
||||
<div className="text-center" key={`${app.id}&${feature.id}`}>
|
||||
<FontAwesomeIcon icon={faCheck} color="green" />
|
||||
</div>
|
||||
) : (
|
||||
<div key={`${app.id}&${feature.id}`}><Remove /></div>
|
||||
<div className="text-center" key={`${app.id}&${feature.id}`}><Remove /></div>
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user