Skip to content

Commit 0c0c603

Browse files
committed
Improving behavior of text snippets in code reviews.
1 parent ae0c6a4 commit 0c0c603

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/components/forms/Fields/SourceCodeField.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class SourceCodeField extends Component {
4848
}
4949
}
5050
ev.stopPropagation();
51+
ev.preventDefault();
5152
}
5253
};
5354

src/components/forms/ReviewCommentForm/ReviewCommentSnippetDialog.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ const ReviewCommentSnippetDialog = ({
4242
<tbody>
4343
{[1, 2, 3, 4, 5, 6, 7, 8, 9, 0].map(i => (
4444
<tr key={i} className={text && text === snippets[`snippet${i}`] ? 'table-success' : ''}>
45-
<th>#{i}</th>
45+
<th className={!snippets[`snippet${i}`] && 'text-muted opacity-50'}>#{i}</th>
4646
<td className="w-100 small align-middle">
4747
{snippets[`snippet${i}`] ? (
4848
<Markdown source={snippets[`snippet${i}`]} />
4949
) : (
50-
<i className="text-muted opacity-50">
50+
<i className="text-muted opacity-25">
5151
<FormattedMessage id="generic.empty" defaultMessage="empty" />
5252
</i>
5353
)}

0 commit comments

Comments
 (0)