openscd / open-scd-core

Apache License 2.0
5 stars 8 forks source link

Allow longer menu plugin titles or menu hierarchy #126

Open danyill opened 1 year ago

danyill commented 1 year ago

Currently, menu plugin names are truncated if they are too long:

image

For my use case I want to add some additional menu plugins to enable specific functionality in the subscriber later binding plugin.

I can't think of a shorter name so I'm thinking of having:

Ideally we could resolve this by allowing a wider menu bar, allowing multi-line or supporting a secondary line.

I guess the other option would be an increased hierarchy such that we could do

While more work, I can see a need for many plugins in future and so a hierarchy seems like a good option to me.

pascalwilbrink commented 1 year ago

I think it would be nice to "group" the plugins.

"menu": [ "Subscriber": [ {...}, {...} ] ]

For this, the schema.json (if present) and the way of displaying plugins should be changed

juancho0202 commented 1 year ago

Hierarchy and a tooltip maybe to show the full string?