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

Any way to make width = "wide" or "centered"? #18

Open
ajinkya-kulkarni opened this issue Mar 13, 2023 · 1 comment
Open

Any way to make width = "wide" or "centered"? #18

ajinkya-kulkarni opened this issue Mar 13, 2023 · 1 comment

Comments

@ajinkya-kulkarni
Copy link
Contributor

Basically just the title. I would love a way for the width to be detected automatically and centre the image-comparison component.

@ajinkya-kulkarni
Copy link
Contributor Author

if which_layout == "centered:
  image_comparison(
  img1 = image1,
  img2 = image2,
  label1="Image",
  label2="Result",
  width = 674,
  in_memory = True, show_labels = True, make_responsive = True
  )
if which_layout == "wide:
  image_comparison(
  img1 = image1,
  img2 = image2,
  label1="Image",
  label2="Result",
  width = 1169,
  in_memory = True, show_labels = True, make_responsive = True
  )

I came up with this ad-hoc solution, but is there a way you can implement this in the HTML/CSS block? I have zero knowledge of HTML/CSS, so I am not a 100% sure.

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

1 participant