-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Hi, your analysis is spot on and the sizing of the input is indeed defined in the However, at the same time, I guess the generic behavior can be improved. So if you have suggestions for a better generic styling, please let us know or open a PR.
You're right, it is implemented as a Feel free to suggest any improvements that can be applied generically in the framework! We are happy to review a PR! |
Beta Was this translation helpful? Give feedback.
-
@planger I noticed in testing that the text inside the input box can sometimes be oddly large compared to the input box, to the point where it isn't legible, depending on the zoom level. It seems like when I'm really zoomed in the text is small and it's large when zoomed out. I couldn't see a way to impact the text size, so I have been trying to adjust the input box size, but is there a better way? |
Beta Was this translation helpful? Give feedback.
-
I couldn't find a solution to improving the For the
It seems that the current implementation uses this code in the
When it seems you would need something more like this:
Note that the regex used in the original implementation does not account for decimal values. This would cause the resulting "size" value to be something like |
Beta Was this translation helpful? Give feedback.
Hi,
your analysis is spot on and the sizing of the input is indeed defined in the
EditLabelUI
via an element style. Thus, it unfortunately cannot be overwritten via custom CSS, but only if you customize theEditLabelUi
(by rebinding it in your diagram editor and overwrite thesetPosition
method). This is also what we did in several customer projects to optimize the label editing for certain use cases.However, at the same time, I guess the generic behavior can be improved. So if you have suggestions for a better generic styling, please let us know or open a PR.