Skip to content

Commit

Permalink
Merge pull request #60 from perimetre/3.4.7
Browse files Browse the repository at this point in the history
3.4.7
  • Loading branch information
dgonzalez-perimetre authored Feb 17, 2022
2 parents e934094 + f29cc7a commit 29aa43c
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 32 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

## [3.4.7] 2022-02-17

### Fixed

- fix classname required prop on BaseCard
- fix image fit on BaseCard
- update version of fontawesome devs

## [3.4.6] 2022-02-16

### Added
Expand Down
81 changes: 57 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@perimetre/ui",
"description": "A component library made by @perimetre",
"version": "3.4.6",
"version": "3.4.7",
"repository": {
"type": "git",
"url": "git+https://github.com/perimetre/ui.git"
Expand Down Expand Up @@ -50,11 +50,11 @@
},
"dependencies": {
"@babel/core": "^7.12.13",
"@fortawesome/fontawesome-svg-core": "^1.2.34",
"@fortawesome/free-brands-svg-icons": "^5.15.2",
"@fortawesome/free-regular-svg-icons": "^5.15.2",
"@fortawesome/free-solid-svg-icons": "^5.15.2",
"@fortawesome/react-fontawesome": "^0.1.14",
"@fortawesome/fontawesome-svg-core": "^1.3.0",
"@fortawesome/free-brands-svg-icons": "^6.0.0",
"@fortawesome/free-regular-svg-icons": "^6.0.0",
"@fortawesome/free-solid-svg-icons": "^6.0.0",
"@fortawesome/react-fontawesome": "^0.1.17",
"@rollup/plugin-commonjs": "^17.1.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^11.1.1",
Expand Down
4 changes: 2 additions & 2 deletions src/components/BaseCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export type BaseCardProps = {
*
* @default string
*/
className: string;
className?: string;
/**
* Extended classes for content
*
Expand Down Expand Up @@ -78,7 +78,7 @@ export const BaseCard: React.FC<BaseCardProps> = ({
<div className="flex flex-col w-full">
{imageUrl && (
<div className="w-full h-28 overflow-hidden relative">
<img src={imageUrl} alt={imageAlt} className="w-full h-full" />
<img src={imageUrl} alt={imageAlt} className="w-full h-full object-cover" />

{imageGradient && (
<div
Expand Down

0 comments on commit 29aa43c

Please sign in to comment.