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

horizontalAlignment="center" broken on new versions #7090

Open
Skier23 opened this issue Feb 15, 2025 · 5 comments
Open

horizontalAlignment="center" broken on new versions #7090

Skier23 opened this issue Feb 15, 2025 · 5 comments

Comments

@Skier23
Copy link

Skier23 commented Feb 15, 2025

Describe the bug
horizontalAlignment="center" used to work on at least version 1.13 but is broken on the latest versions and does not align an image center.

To Reproduce
set horizontalAlignment="center" in the labeling interface and see that tasks with an image are not centered

Expected behavior
the images should be centered

Screenshots

Image

Environment (please complete the following information):

  • OS: Windows
  • Label Studio Version: 1.17.0.dev0

Additional context
Add any other context about the problem here.

@makseq
Copy link
Member

makseq commented Feb 16, 2025

Please share your full labeling configuration.

@hlomzik
Copy link
Collaborator

hlomzik commented Feb 17, 2025

That really is strange, thank you for notifying, we'll fix it.

@hlomzik
Copy link
Collaborator

hlomzik commented Feb 17, 2025

/jira create leap

Workflow run
Jira issue TRIAG-1215 is created

@Skier23
Copy link
Author

Skier23 commented Feb 17, 2025

Please share your full labeling configuration.

<View>
  <Image name="image" value="$image" horizontalAlignment="center" verticalAlignment="top" maxheight="880px" width="100%"/>
  <Choices name="choice" toName="image" choice="multiple" showInline="true" allowNested="true">
    <Choice value="TODO" style="width:140px" hotkey="" />
    <Choice value="TODO2" style="width:140px" hotkey="" />
    <Choice value="a" style="width:140px" hotkey="" />
    <Choice value="z" style="width:140px" hotkey="" />
    <Choice value="y" style="width:140px" hotkey="" />
    <Choice value="x" style="width:140px" hotkey="" />
    <Choice value="b" style="width:140px" hotkey="" />
  </Choices>
</View>

@Skier23
Copy link
Author

Skier23 commented Feb 18, 2025

That really is strange, thank you for notifying, we'll fix it.

Do you know if there would be a workaround? Or if the issue is apparent what caused the change and might not be a big change, I could make changes on my local branch. Otherwise I'll likely need to downgrade to an older version as the left alignment hurts my workflow due to zooming and being able to see the choices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants