Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eagle 1222 #683

Merged
merged 6 commits into from
May 21, 2024
Merged

Eagle 1222 #683

merged 6 commits into from
May 21, 2024

Conversation

M-Wicenec
Copy link
Collaborator

No description provided.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @M-Wicenec - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟡 General issues: 2 issues found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

Comment on lines +79 to +80
.navbar .dropdown-item{
padding: .05rem 1rem;
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion: Padding value might be too small.

The padding value of .05rem might be too small and could lead to rendering issues on some devices. Consider increasing it slightly.

Suggested change
.navbar .dropdown-item{
padding: .05rem 1rem;
.navbar .dropdown-item{
padding: .25rem 1rem;
}

@@ -1801,7 +1801,7 @@ export class GraphRenderer {

static SCREEN_TO_GRAPH_POSITION_X(x:number) : number {
const eagle = Eagle.getInstance();
if(x===null){
if(x===null && GraphRenderer.dragCurrentPosition){
Copy link
Contributor

Choose a reason for hiding this comment

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

issue (bug_risk): Potential issue with null check.

The condition x===null && GraphRenderer.dragCurrentPosition might not cover all edge cases. Consider checking if GraphRenderer.dragCurrentPosition is defined before accessing its properties.

@M-Wicenec M-Wicenec merged commit aeb0262 into master May 21, 2024
1 check passed
@M-Wicenec M-Wicenec deleted the eagle-1222 branch May 21, 2024 08:46
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.

None yet

1 participant