Skip to content

Commit

Permalink
fix(labels): wrap labels within a parent div
Browse files Browse the repository at this point in the history
- this way we avoid the read more button from being affected by
  the flex rules and the button remains to the right side of the
  extra section
  • Loading branch information
ichim-david committed Nov 28, 2022
1 parent d5e46cd commit dc78346
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/UniversalCard/fragments/CardExtra.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ const CardExtra = ({ item, itemModel = {}, ...rest }) => {

return show ? (
<UiCard.Content extra>
{showTags && <Tags item={item} itemModel={itemModel} {...rest} />}
{showTags && (
<div className={'tags labels'}>
<Tags item={item} itemModel={itemModel} {...rest} />
</div>
)}
{showCallToAction && (
<CallToAction item={item} itemModel={itemModel} {...rest} />
)}
Expand Down

0 comments on commit dc78346

Please sign in to comment.