Improved dark mode and canvas position in the automations editor#27956
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThis PR migrates Automations canvas components to system design tokens, centralizes edge stroke into DEFAULT_EDGE_STROKE ( Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
da9b3cd to
70dcf3c
Compare
be7fe10 to
bbb406a
Compare
70dcf3c to
2c6eeed
Compare
449de28 to
d94ddd6
Compare
d94ddd6 to
5e673e2
Compare
|
|
||
| type AutomationCanvasProps = { | ||
| const getInitialViewport = (canvasWidth: number): {x: number; y: number; zoom: number} => ({ | ||
| x: Math.round((canvasWidth / 2) - NODE_COLUMN_CENTER_X), |
There was a problem hiding this comment.
i was kind of surprised that i had to do all this and that react flow didn't have an automatic "center horizontally" API that let me just adjust the y position
There was a problem hiding this comment.
Yeah, I wonder if they have an issue for this somewhere...fine as is.
Co-authored-by: Evan Hahn <evan@ghost.org>
no ref
not perfect or anything yet, just gets things a bit closer
