File tree 1 file changed +6
-4
lines changed
src/components/Certification/MyCurrentCertification/CurrentAchivementRate
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -25,13 +25,15 @@ function CurrentAchivementRate({
25
25
< div className = "absolute left-[85%] -translate-x-1/2 bottom-0 translate-y-10 w-0 h-0 border-b-[#FDEDE1] border-b-[1.5rem] border-l-[1.3rem] border-r-[1.3rem] border-l-transparent border-r-transparent" />
26
26
< div
27
27
className = { cls (
28
- "relative rounded-l-[1rem] h-full" ,
29
- successPercent >= 85 ? "bg-[#37E788]" : " bg-_coral-70" ,
30
- successPercent === 100 ? "rounded-r-[1rem]" : ""
28
+ "relative rounded-l-[1rem] h-full rounded-[1rem]" ,
29
+ successPercent >= 85 ? "bg-[#37E788]" : " bg-_coral-70"
31
30
) }
32
31
style = { { width : `${ successPercent } %` } }
33
32
>
34
- < p className = "text-[1.1rem] font-normal absolute bottom-0 translate-y-9 right-0 translate-x-1/2" >
33
+ < p className = "-translate-y-8 right-0 translate-x-1/2 absolute text-[1.1rem] font-medium" >
34
+ { successPercent } %
35
+ </ p >
36
+ < p className = "text-[1.1rem] font-normal absolute bottom-0 translate-y-8 right-0 translate-x-1/2" >
35
37
{ currentAttempt } /{ totalAttempt }
36
38
</ p >
37
39
</ div >
You can’t perform that action at this time.
0 commit comments