Skip to content

Commit

Permalink
Fix wrap issues with GH label badges
Browse files Browse the repository at this point in the history
  • Loading branch information
rgehan committed Dec 28, 2023
1 parent 4a65718 commit ce7de47
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/providers/github/components/IssueCard/IssueCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export const IssueCard = compose<IInnerProps, IProps>(
)}
<ContextualDropdown issue={issue} />
</div>
<div className="flex mt-3">
<div className="flex flex-wrap gap-y-1 gap-x-1 mt-3">
{issue.labels.map(label => (
<LabelBadge key={label.name} label={label} />
))}
Expand Down
2 changes: 1 addition & 1 deletion src/providers/github/components/IssueCard/LabelBadge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const LabelBadge = ({ label }: IProps) => {
return (
<div
className={cx(
'text-xs py-1 px-2 rounded mr-2',
'text-xs whitespace-nowrap py-1 px-2 rounded',
isDark ? 'text-white' : 'text-gray-900'
)}
style={{ background }}
Expand Down
3 changes: 2 additions & 1 deletion src/providers/jira/components/IssueCard/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { IssueCard, IProps } from './IssueCard';
export { IssueCard } from './IssueCard';
export type { IProps } from './IssueCard';

0 comments on commit ce7de47

Please sign in to comment.