Skip to content

Commit 79680f6

Browse files
refactor: Add support for react versions>= 16.8, style changes
1 parent 69a610e commit 79680f6

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"webpack-merge-and-include-globally": "^2.3.4"
8686
},
8787
"peerDependencies": {
88-
"react": "^18.2.0"
88+
"react": ">=16.8.0"
8989
},
9090
"files": [
9191
"build"

src/lib/inline-images/constants.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
export const DEFAULT_SPACE_BETWEEN_PICS = 20;
1+
export const DEFAULT_SPACE_BETWEEN_PICS = 45;
22

33
export enum Elements {
44
Avatar = "Avatar",
55
ExtraCount = "ExtraCount",
66
Name = "Name"
77
}
88

9-
export const DEFAULT_AVATAR_SIZE = 40;
9+
export const DEFAULT_AVATAR_SIZE = 64;

src/lib/inline-images/styles.module.scss

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
margin-top: 5px;
99
}
1010
img {
11-
border: 3px solid white;
11+
border: 4px solid white;
1212
transition: all 0.3s;
1313
&.elevateOnHover:hover {
1414
transform: scale(1.1);
@@ -40,8 +40,9 @@
4040
top: 0;
4141
}
4242
.extraCount {
43-
border: 3px solid white;
44-
background: floralwhite;
43+
border: 4px solid white;
44+
background: #F3F3FF;
45+
color: #5D5FEF;
4546
display: flex;
4647
justify-content: center;
4748
align-items: center;

0 commit comments

Comments
 (0)