Skip to content

Commit

Permalink
added min-max height-width (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cenadros authored Jun 17, 2024
1 parent ebad146 commit 199984d
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions plugin-src/transformers/partials/transformLayout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,21 @@ export const transformLayoutAttributes = (
node: LayoutMixin
): Pick<
LayoutChildAttributes,
'layoutItemH-Sizing' | 'layoutItemV-Sizing' | 'layoutItemAbsolute'
| 'layoutItemH-Sizing'
| 'layoutItemV-Sizing'
| 'layoutItemAbsolute'
| 'layoutItemMaxH'
| 'layoutItemMinH'
| 'layoutItemMaxW'
| 'layoutItemMinW'
> => {
return {
'layoutItemH-Sizing': translateLayoutSizing(node.layoutSizingHorizontal),
'layoutItemV-Sizing': translateLayoutSizing(node.layoutSizingVertical),
'layoutItemAbsolute': node.layoutPositioning === 'ABSOLUTE'
'layoutItemAbsolute': node.layoutPositioning === 'ABSOLUTE',
'layoutItemMaxH': node.maxHeight ?? undefined,
'layoutItemMinH': node.minHeight ?? undefined,
'layoutItemMaxW': node.maxWidth ?? undefined,
'layoutItemMinW': node.minWidth ?? undefined
};
};

0 comments on commit 199984d

Please sign in to comment.