-
Notifications
You must be signed in to change notification settings - Fork 56
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
fixing the position and display of the segment labels during sketch mode #3796
Conversation
QA Wolf here! As you write new code it's important that your test coverage is keeping up. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Might need some padding around the text, on dark mode it looks a little accidental. |
|
|
…eling-app into nadro/3076/segment-text-fix
Yeah, my first image didn't have that rendered I think I took the screenshot before that got rendered on the engine side. Frank is right about the line height padding, it can be a little odd with this font. |
question: how does this look with a border color matching line colors? |
I personally like it because it kind of ties together the line through the border - @franknoirot @Irev-Dev ? |
…eling-app into nadro/3076/segment-text-fix
I'll let Frank make the call on this. |
…eling-app into nadro/3076/segment-text-fix
Love it. I don't love the border around because it makes it feel like an input to me, I think that might increase the user complaints around the lack of ability to do the "double-click-to-edit-length" user flow. But I think this is awesome and I want it in more. I say punch it |
Isn't that a benefit? That users can do this in some upcoming PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job!
@@ -267,15 +267,16 @@ code { | |||
} | |||
|
|||
.segment-length-label-text { | |||
transform: translate(var(--x, 0), var(--y, 0)); | |||
transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--degree, 0)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So clean!
Yeah the follow up PR could be when two boxes overlap they both disappear. |
Sorry noticing all the things post merge. Screenshare.-.2024-09-11.3_30_06.PM.mp4It's kinda charming tbh. |
closes #3076
The position of the label grew with the scale since it is in the offsetFromMidPoint. We need the parent container to be position properly and place the label inside of it, we don't need to reposition the label within the parent container.