wave icon indicating copy to clipboard operation
wave copied to clipboard

Let developer choose ui.image_annotator alignment (currently centered by default)

Open pascal-pfeiffer opened this issue 2 years ago • 3 comments

Is your feature request related to a problem? Please describe

In large flexible layouts, I would like to choose the alignment of the ui.image_annotator component. Currently, the image is centered in the parent div by default without an option to modify this.

Describe the solution you'd like

My preferred solution would be to add a justify parameter to ui.image_annotator with "center" being the default and the developer may also choose from "left" and "right". Additionally, users may also want to change the alignment of the labels and the tools, which could also be made customizable (currently both left aligned by default).

Describe alternatives you've considered

Alternativly, developers could probably use custom CSS to modify the behavior, but this is hurting code readability.

pascal-pfeiffer avatar Jun 21 '22 11:06 pascal-pfeiffer

Hi @pascal-pfeiffer,

can you elaborate more on why you consider the alignment important? Is there any functional UX value or just "cosmetic touches"?

mturoci avatar Jun 21 '22 15:06 mturoci

Besides arguable aesthetics, it also gives a better UX, as the travel length for the coursor from class selection to drawing the box on the image would be smaller.

pascal-pfeiffer avatar Jun 21 '22 15:06 pascal-pfeiffer

We will probably not going to make this configurable, but rather try to find the best UX possible and use it as a default.

travel length for the coursor from class selection to drawing the box on the image would be smaller

Agree. Can you maybe send over some examples of similar text annotators that you have used previously and considered good UX?

mturoci avatar Jun 23 '22 00:06 mturoci

Closing this in favor for zooming and panning functionality #1598. In this case, centering the images seems to be the better option.

pascal-pfeiffer avatar Sep 20 '22 09:09 pascal-pfeiffer