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

feat(3200): css fix to give round border of stages and right padding in WG container #1316

Merged
merged 4 commits into from
Dec 20, 2024

Conversation

VonnyJap
Copy link
Member

@VonnyJap VonnyJap commented Dec 20, 2024

Context

The rectangle border around a stage in the new interface lacks a border radius, deviating from the current design. Additionally, the workflow graph container’s right side has no padding, making it visually unappealing.

Screenshot 2024-12-19 at 4 32 48 PM

Objective

Add border radius to the stage rectangles in the new interface and apply padding to the right side of the workflow graph container for improved visual consistency.

Screenshot 2024-12-19 at 4 43 34 PM

References

screwdriver-cd/screwdriver#3200

License

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

Comment on lines 102 to 106

.stage-container {
rx: 5;
ry: 5;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

rx and ry aren't valid CSS properties, they are for SVG elements. The proper fix is to actually remove the CSS here and in workflow-graph-d3/styles.scss and then modify utils/pipeline/graph/d3-graph-util.js so that the rx and ry attributes are set on the SVG rect element.

app/components/pipeline/workflow/styles.scss Outdated Show resolved Hide resolved
@minghay minghay merged commit 69bea41 into master Dec 20, 2024
2 checks passed
@minghay minghay deleted the css-fix-graph branch December 20, 2024 17:25
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