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

Long relationship technology strings distort the layouts #72

Open
hubertmis opened this issue Jun 4, 2024 · 0 comments
Open

Long relationship technology strings distort the layouts #72

hubertmis opened this issue Jun 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@hubertmis
Copy link

Description

When a relationship technology contains a longer string (e.g. the name or version of API instead of simple "REST API" or "C API"), the view gets distorted by the extensive width of relationship text boxes:

image

It seems the reason is the technology string does not follow the width style property of the relationships. It seems this could be easily fixed by adding breakText() function to the technology string processing:

https://github.com/structurizr/java/blob/f5780f2e0c2a95cec314771bd5d8baf022f129b3/structurizr-export/src/main/java/com/structurizr/export/dot/DOTExporter.java#L312

The only workaround I'm aware of is adding line breaks (\n) manually to the technology strings in the model description. However, this is hard to maintain when changing styles in the views.

Would it be OK to make technology strings obey the relationship width property?

Priority

I'm willing to add this feature myself and raise a PR (please confirm approach first)

More information

No response

@hubertmis hubertmis added the enhancement New feature or request label Jun 4, 2024
@simonbrowndotje simonbrowndotje transferred this issue from structurizr/java Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant