Skip to content

Commit e95f21a

Browse files
[MM-401]: Added pr/issue opened by in tooltip modal (#833)
* [MM-401]: added pr/issue opened by in tooltip modal * [MM-401]: fixed lint
1 parent 505e539 commit e95f21a

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

webapp/src/components/link_tooltip/link_tooltip.jsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,12 @@ export const LinkTooltip = ({href, connected, show, theme}) => {
127127
<h5 className='mr-1'>{data.title}</h5>
128128
<span>{'#' + data.number}</span>
129129
</a>
130+
{data?.user?.login && (
131+
<p className='opened-by'>
132+
{'Opened by '}
133+
<a href={`https://github.com/${data.user.login}`}>{data.user.login}</a>
134+
</p>
135+
)}
130136
<div className='markdown-text mt-1 mb-1'>
131137
<ReactMarkdown linkTarget='_blank'>{description}</ReactMarkdown>
132138
</div>

webapp/src/components/link_tooltip/tooltip.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,15 @@
123123
white-space: nowrap;
124124
overflow: hidden;
125125
}
126+
127+
.github-tooltip .opened-by {
128+
font-size: 12px;
129+
color: var(--light-gray);
130+
margin-top: 4px;
131+
line-height: 1.25;
132+
}
133+
134+
.github-tooltip .opened-by a {
135+
color: var(--dark-gray);
136+
display: inline-block;
137+
}

0 commit comments

Comments
 (0)