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

Simplify Tailwind implementation #110

Merged
merged 8 commits into from
Jul 12, 2024
Prev Previous commit
Next Next commit
Add Tailwind support for horizontal auto-layout hug (#111)
Co-authored-by: Dave Stewart <dev@davestewart.co.uk>
  • Loading branch information
davestewart and davestewart committed Jul 2, 2024
commit 29dfb0f0c0df4277ff6f159bb77a1b7c12acfeda
6 changes: 5 additions & 1 deletion packages/backend/src/tailwind/builderImpl/tailwindSize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ export const tailwindSizePartial = (
: null) ?? node.parent;

let w = "";
if (typeof size.width === "number") {
if (
typeof size.width === "number" &&
'layoutSizingHorizontal' in node &&
node.layoutSizingHorizontal === 'FIXED'
) {
w = `w-${pxToLayoutSize(size.width)}`;
} else if (size.width === "fill") {
if (
Expand Down