Skip to content

Commit

Permalink
fix(preset-mini): missing place-items (#3526)
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-He95 committed Jan 23, 2024
1 parent 6032ac9 commit fd4cb3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/preset-mini/src/_rules/position.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const alignments: StaticRule[] = [
...makeGlobalStaticRules('self', 'align-self'),
]

export const placements: Rule[] = [
export const placements: StaticRule[] = [
// contents
['place-content-center', { 'place-content': 'center' }],
['place-content-start', { 'place-content': 'start' }],
Expand Down Expand Up @@ -109,7 +109,7 @@ export const placements: Rule[] = [
* This is to add `flex-` and `grid-` prefix to the alignment rules,
* supporting `flex="~ items-center"` in attributify mode.
*/
export const flexGridJustifiesAlignments = [...justifies, ...alignments]
export const flexGridJustifiesAlignments = [...justifies, ...alignments, ...placements]
.flatMap(([k, v]): StaticRule[] => [
[`flex-${k}`, v],
[`grid-${k}`, v],
Expand Down

0 comments on commit fd4cb3e

Please sign in to comment.