Skip to content

Commit 29dfb0f

Browse files
authored
Add Tailwind support for horizontal auto-layout hug (#111)
Co-authored-by: Dave Stewart <[email protected]>
1 parent 7066b27 commit 29dfb0f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/backend/src/tailwind/builderImpl/tailwindSize.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ export const tailwindSizePartial = (
1414
: null) ?? node.parent;
1515

1616
let w = "";
17-
if (typeof size.width === "number") {
17+
if (
18+
typeof size.width === "number" &&
19+
'layoutSizingHorizontal' in node &&
20+
node.layoutSizingHorizontal === 'FIXED'
21+
) {
1822
w = `w-${pxToLayoutSize(size.width)}`;
1923
} else if (size.width === "fill") {
2024
if (

0 commit comments

Comments
 (0)