Skip to content

Commit

Permalink
refactor: Add support for react versions>= 16.8, style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayduth-keyvalue authored Apr 22, 2024
1 parent 69a610e commit 79680f6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"webpack-merge-and-include-globally": "^2.3.4"
},
"peerDependencies": {
"react": "^18.2.0"
"react": ">=16.8.0"
},
"files": [
"build"
Expand Down
4 changes: 2 additions & 2 deletions src/lib/inline-images/constants.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export const DEFAULT_SPACE_BETWEEN_PICS = 20;
export const DEFAULT_SPACE_BETWEEN_PICS = 45;

export enum Elements {
Avatar = "Avatar",
ExtraCount = "ExtraCount",
Name = "Name"
}

export const DEFAULT_AVATAR_SIZE = 40;
export const DEFAULT_AVATAR_SIZE = 64;
7 changes: 4 additions & 3 deletions src/lib/inline-images/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
margin-top: 5px;
}
img {
border: 3px solid white;
border: 4px solid white;
transition: all 0.3s;
&.elevateOnHover:hover {
transform: scale(1.1);
Expand Down Expand Up @@ -40,8 +40,9 @@
top: 0;
}
.extraCount {
border: 3px solid white;
background: floralwhite;
border: 4px solid white;
background: #F3F3FF;
color: #5D5FEF;
display: flex;
justify-content: center;
align-items: center;
Expand Down

0 comments on commit 79680f6

Please sign in to comment.