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 a1582a6 commit 6c8a064Copy full SHA for 6c8a064
.changeset/shy-signs-taste.md
@@ -0,0 +1,6 @@
1
+---
2
+"@gradio/atoms": patch
3
+"gradio": patch
4
5
+
6
+fix:Ensure non-form elements are correctly positioned when scale is applied
js/atoms/src/Block.svelte
@@ -59,6 +59,7 @@
59
style:flex-grow={scale}
60
style:min-width={`calc(min(${min_width}px, 100%))`}
61
style:border-width="var(--block-border-width)"
62
+ class:auto-margin={scale === null}
63
>
64
<slot />
65
</svelte:element>
@@ -74,6 +75,9 @@
74
75
background: var(--block-background-fill);
76
width: 100%;
77
line-height: var(--line-sm);
78
+ }
79
80
+ .auto-margin {
81
margin-left: auto;
82
margin-right: auto;
83
}
0 commit comments