oddsgate-ds 1.0.83 → 1.0.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/EventsCard/EventsCard.theme.ts +1 -0
- package/src/components/molecules/ProductCard/ProductCard.component.tsx +15 -5
- package/src/components/molecules/ProductCard/ProductCard.theme.ts +2 -2
- package/src/components/organisms/Tabs/Tabs.theme.ts +1 -1
package/package.json
CHANGED
|
@@ -18,12 +18,22 @@ const ProductCard = ({
|
|
|
18
18
|
const parts = title ? title.split(" ") : [];
|
|
19
19
|
const half = parts ? parts.length / 2 : 0;
|
|
20
20
|
|
|
21
|
-
const firstRowTitle = Array.prototype.join.call({
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}, " ");
|
|
21
|
+
// const firstRowTitle = Array.prototype.join.call({
|
|
22
|
+
// ...parts,
|
|
23
|
+
// length: half,
|
|
24
|
+
// }, " ");
|
|
25
|
+
let firstRowTitle;
|
|
26
|
+
let secondRowTitle;
|
|
27
|
+
|
|
28
|
+
if(parts.length>1){
|
|
29
|
+
firstRowTitle = parts.slice(0, half).join(" ")
|
|
30
|
+
secondRowTitle = parts.slice(half, parts?.length).join(" ")
|
|
31
|
+
}else{
|
|
32
|
+
firstRowTitle = title;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
console.log(parts, half);
|
|
25
36
|
|
|
26
|
-
const secondRowTitle = parts.slice(half, parts?.length).join(" ")
|
|
27
37
|
|
|
28
38
|
return (
|
|
29
39
|
<StyledProductCard className={className} style={style}>
|
|
@@ -17,8 +17,8 @@ export const StyledProductCardWrapper = styled.div<IProductCard>`
|
|
|
17
17
|
display:flex;
|
|
18
18
|
flex-flow:column;
|
|
19
19
|
align-items: center;
|
|
20
|
-
gap:
|
|
20
|
+
gap: 1.5rem;
|
|
21
21
|
background-color: ${colors.primary50};
|
|
22
|
-
padding:
|
|
22
|
+
padding: 3rem 2rem;
|
|
23
23
|
border-radius: 0 ${radius.lg};
|
|
24
24
|
`;
|
|
@@ -18,7 +18,7 @@ export const StyledTabsLinks = styled.a<ITabsItem>`
|
|
|
18
18
|
width: 100%;
|
|
19
19
|
color: ${colors.secondary50};
|
|
20
20
|
background-color: ${colors.third10};
|
|
21
|
-
padding: 8px
|
|
21
|
+
padding: 8px 26px;
|
|
22
22
|
border-radius: 50px;
|
|
23
23
|
transition: all 0.3s linear;
|
|
24
24
|
cursor: pointer;
|