Skip to content

Commit 3e8eace

Browse files
Merge pull request #45 from code4rena-dev/develop
Minor Version - Card Component + Icon Fix
2 parents 129f446 + 2b9a3d8 commit 3e8eace

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@code4rena/components-library",
3-
"version": "3.0.1",
3+
"version": "3.0.2",
44
"description": "Code4rena's official components library ",
55
"types": "./dist/lib.d.ts",
66
"exports": {

src/lib/Card/Card.scss

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
background: $color__n-85;
77
border-radius: $border-radius__m;
88
width: 100%;
9-
9+
1010
&--transparent {
1111
background: transparent;
1212
}
13-
13+
1414
&--outlined {
1515
border: 1px solid $color__n-60;
1616
}
@@ -37,7 +37,7 @@
3737
order: 2;
3838
}
3939
}
40-
40+
4141
&__main {
4242
display: flex;
4343
flex-direction: row;
@@ -49,6 +49,8 @@
4949
&__image {
5050
height: 5.625rem;
5151
width: 5.625rem;
52+
min-height: 5.625rem;
53+
min-width: 5.625rem;
5254
border-radius: 50%;
5355
overflow: hidden;
5456
display: flex;
@@ -66,11 +68,15 @@
6668
&--l {
6769
height: 9rem;
6870
width: 9rem;
71+
min-height: 9rem;
72+
min-width: 9rem;
6973
}
7074

7175
&--s {
7276
height: 4rem;
7377
width: 4rem;
78+
min-height: 4rem;
79+
min-width: 4rem;
7480
}
7581

7682
&--radius-l {
@@ -106,12 +112,13 @@
106112
margin: 0 $spacing__m;
107113
flex-grow: 1;
108114
order: 2;
115+
word-break: break-all;
109116
}
110117

111118
&__cta {
112119
order: 3;
113120
}
114-
121+
115122
&__footer {
116123
color: $color__n-10;
117124
border-top: 1px solid $color__n-60;
@@ -120,10 +127,10 @@
120127
justify-content: space-between;
121128
padding: 0;
122129
}
123-
130+
124131
&__footer-link-wrapper {
125132
padding: 0;
126-
133+
127134
a {
128135
color: $color__n-10;
129136
border-left: 1px solid $color__n-60;
@@ -136,10 +143,10 @@
136143
}
137144
}
138145
}
139-
146+
140147
&__footer-details {
141148
padding: $spacing__s $spacing__m;
142149
margin: 0;
143150
justify-self: flex-start;
144151
}
145-
}
152+
}

src/lib/Icon/iconList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ export const icons = (size: string, color: string, className?: string): Record<s
209209
</g>
210210
</g>
211211
</svg>,
212-
"more-vertical": <svg className={className} width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
212+
"more-vertical": <svg className={className} width={size} height={size} viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
213213
<g id="more-vertical">
214214
<g>
215215
<path fill={color} d="M12.5 4.75C12.5 5.7165 11.7165 6.5 10.75 6.5C9.7835 6.5 9 5.7165 9 4.75C9 3.7835 9.7835 3 10.75 3C11.7165 3 12.5 3.7835 12.5 4.75Z" />

0 commit comments

Comments
 (0)