mirror of
https://github.com/zhigang1992/devhub.git
synced 2026-05-13 20:15:50 +08:00
Show issue/pr creation details on single column mode as well
This commit is contained in:
@@ -222,7 +222,7 @@ export const EventCard = React.memo((props: EventCardProps) => {
|
||||
includeTag: cardViewMode === 'compact',
|
||||
repoIsKnown: repoIsKnown || cardViewMode === 'compact',
|
||||
}
|
||||
const { actionText } = getEventMetadata(event, actionTextOptions)
|
||||
const { action, actionText } = getEventMetadata(event, actionTextOptions)
|
||||
|
||||
const isPush = type === 'PushEvent'
|
||||
const isForcePush = isPush && (payload as GitHubPushEvent).forced
|
||||
@@ -428,7 +428,7 @@ export const EventCard = React.memo((props: EventCardProps) => {
|
||||
// ? true
|
||||
// : false
|
||||
}
|
||||
showCreationDetails={cardViewMode !== 'compact'}
|
||||
showCreationDetails={action !== 'created'}
|
||||
title={issueOrPullRequest.title}
|
||||
url={issueOrPullRequest.url}
|
||||
userLinkURL={issueOrPullRequest.user.html_url || ''}
|
||||
|
||||
@@ -345,7 +345,7 @@ export const NotificationCard = React.memo((props: NotificationCardProps) => {
|
||||
// ? true
|
||||
// : false
|
||||
}
|
||||
showCreationDetails={cardViewMode !== 'compact'}
|
||||
showCreationDetails
|
||||
title={issueOrPullRequest.title}
|
||||
url={issueOrPullRequest.url}
|
||||
userLinkURL={issueOrPullRequest.user.html_url || ''}
|
||||
|
||||
Reference in New Issue
Block a user