Skip to content

Commit

Permalink
fix: dynamically setting gap between tag list and input when tags are…
Browse files Browse the repository at this point in the history
… not rendered inline
  • Loading branch information
JaleelB committed May 29, 2024
1 parent 926672c commit 01b84bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/emblor/src/tag/tag-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ const TagInput = React.forwardRef<HTMLInputElement, TagInputProps>((props, ref)

return (
<div
className={`w-full flex ${!includeTagsInInput && tagCount > 0 ? 'gap-3' : ''} ${
className={`w-full flex ${!includeTagsInInput && tags.length > 0 ? 'gap-3' : ''} ${
inputFieldPosition === 'bottom' ? 'flex-col' : inputFieldPosition === 'top' ? 'flex-col-reverse' : 'flex-row'
}`}
>
Expand Down

0 comments on commit 01b84bd

Please sign in to comment.