We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc6e215 commit b875a7eCopy full SHA for b875a7e
streamlit_image_comparison/__init__.py
@@ -43,7 +43,7 @@ def image_comparison(
43
img2: str,
44
label1: str = "1",
45
label2: str = "2",
46
- width: int = 700,
+ width: int = 704,
47
show_labels: bool = True,
48
starting_position: int = 50,
49
make_responsive: bool = True,
@@ -104,9 +104,10 @@ def image_comparison(
104
105
# write html block
106
htmlcode = f"""
107
+ <style>body {{ margin: unset; }}</style>
108
{css_block}
109
{js_block}
- <div id="foo"style="height: {height}; width: {width or '%100'};"></div>
110
+ <div id="foo" style="height: {height}; width: {width or '100%'};"></div>
111
<script>
112
slider = new juxtapose.JXSlider('#foo',
113
[
0 commit comments