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

Fix NAD branch width when zooming in Microsoft Edge #114

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

YenguiSeddik
Copy link
Contributor

@YenguiSeddik YenguiSeddik commented Nov 5, 2024

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce?

Bug Fix: When using Microsoft Edge, CSS rules for branch width do not apply when zooming in NAD. The behivior. the behavior is fixed at the slightest movement of the svg, but when zooming without moving the svg, the width of the branches does not change dynamically as expected

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

Seddik Yengui and others added 5 commits November 5, 2024 15:14
Signed-off-by: Seddik Yengui <[email protected]>
fix
Signed-off-by: Seddik Yengui <[email protected]>
Copy link

sonarcloud bot commented Nov 14, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
8.3% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@YenguiSeddik YenguiSeddik changed the title [WIP] Fix NAD branch width when zooming in Microsoft Edge Fix NAD branch width when zooming in Microsoft Edge Nov 14, 2024
@@ -9,77 +9,67 @@ export enum THRESHOLD_STATUS {
BELOW = 'BELOW',
ABOVE = 'ABOVE',
}
export type CSS_DECLARATION = Record<string, string>;

export type CSS_DECLARATION = Record<string, (value: number) => string>;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
export type CSS_DECLARATION = Record<string, (value: number) => string>;
export type CSS_DECLARATION = Record<string, ((value: number) => string) | string>;

then use CSS_DECLARATION instead of Record<string, string> ?

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