Skip to content

Minor webview fixes#1217

Merged
shati-patel merged 2 commits intomainfrom
shati-patel/fix-annotation
Mar 17, 2022
Merged

Minor webview fixes#1217
shati-patel merged 2 commits intomainfrom
shati-patel/fix-annotation

Conversation

@shati-patel
Copy link
Copy Markdown
Contributor

Puts the annotation for an alert below the highlighted line instead of above. (PS: I'm not sure if this is the right fix, but it looks good at least 🤷🏽)
image

(Also converts a space to   to stop an overenthusiastic linter from stripping it off the end of the line.)

Checklist

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [Maintainers only] If this pull request makes user-facing changes that require documentation changes, open a corresponding docs pull request in the github/codeql repo and add the ready-for-doc-review label there.

@shati-patel shati-patel requested a review from a team as a code owner March 17, 2022 10:34
{message && severity && <Message
message={message}
currentLineNumber={startingLine + index}
currentLineNumber={startingLine + index - 1}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As you say, this works, however I think it'll be more intuitive if we left this line of code as is and just moved the Message component below the Box component instead.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's far too sensible 😂

(done)

@shati-patel shati-patel enabled auto-merge (squash) March 17, 2022 11:05
@shati-patel shati-patel merged commit aade33f into main Mar 17, 2022
@shati-patel shati-patel deleted the shati-patel/fix-annotation branch March 17, 2022 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants