Tweaks to column sizes for events and a way to show new event icons for feature flag

- Has better column widths and fixed a bug with the time one
- Now allows to show alternative icons for feature flag

refs https://github.com/TryGhost/Team/issues/1851
This commit is contained in:
James Morris 2022-08-25 16:01:47 +01:00
parent b01a56e057
commit 22b0586667
2 changed files with 13 additions and 8 deletions

View File

@ -81,7 +81,7 @@ export default class ParseMemberEventHelper extends Helper {
icon = 'comment';
}
return 'event-' + icon;
return 'event-' + icon + (this.feature.get('memberAttribution') ? '--feature-attribution' : '');
}
getAction(event, hasMultipleNewsletters) {

View File

@ -102,15 +102,20 @@
}
.gh-members-activity.feature-memberAttribution .gh-list-scrolling thead th:nth-child(2) {
width: 25%;
}
.gh-members-activity.feature-memberAttribution .gh-list-scrolling thead th:nth-child(3) {
width: 35%;
width: 58%;
}
.gh-members-activity.feature-memberAttribution .gh-list-scrolling thead th:last-child {
width: 15%;
width: 18%;
}
.gh-members-activity.gh-members-activity-single.feature-memberAttribution .gh-list-scrolling thead th:nth-child(1) {
width: 82%;
}
.gh-members-activity.gh-members-activity-single.feature-memberAttribution .gh-list-scrolling thead th:nth-child(2),
.gh-members-activity.gh-members-activity-single.feature-memberAttribution .gh-list-scrolling thead th:last-child {
width: 18%;
}
.gh-members-activity .gh-list-scrolling tbody .gh-list-data:last-child {
@ -158,7 +163,7 @@
}
.gh-members-activity-description.feature-memberAttribution a {
font-weight: 500;
font-weight: 400;
color: var(--midgrey) !important;
transition: all 150ms ease;
}