Skip to content

Commit 01b1b7b

Browse files
committed
fix: Fixes incorrect position display in keyword detail view when position is above 100
1 parent a050536 commit 01b1b7b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

components/keywords/KeywordDetails.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,14 @@ const KeywordDetails = ({ keyword, closeDetails }:KeywordDetailsProps) => {
5454
return (
5555
<div className="keywordDetails fixed w-full h-screen top-0 left-0 z-[99999]" onClick={closeOnBGClick} data-testid="keywordDetails">
5656
<div className="keywordDetails absolute w-full lg:w-5/12 bg-white customShadow top-0 right-0 h-screen" >
57-
<div className='keywordDetails__header p-6 border-b border-b-slate-200 text-slate-500'>
57+
<div className='keywordDetails__header p-6 border-b border-b-slate-200 text-slate-600'>
5858
<h3 className=' text-lg font-bold'>
5959
<span title={countries[keyword.country][0]}
6060
className={`fflag fflag-${keyword.country} w-[18px] h-[12px] mr-2`} /> {keyword.keyword}
61-
<span className='py-1 px-2 ml-2 rounded bg-blue-50 text-blue-700 text-xs font-bold'>{keyword.position}</span>
61+
<span
62+
className={`py-1 px-2 ml-2 rounded bg-blue-50 ${keyword.position === 0 ? 'text-gray-500' : 'text-blue-700'} text-xs font-bold`}>
63+
{keyword.position === 0 ? 'Not in First 100' : keyword.position}
64+
</span>
6265
</h3>
6366
<button
6467
className='absolute top-2 right-2 p-2 px-3 text-gray-400 hover:text-gray-700 transition-all hover:rotate-90'

0 commit comments

Comments
 (0)