Skip to content

Commit 6ead0bc

Browse files
authored
Merge pull request #443 from singh-odyssey/fix-visibility-topmate_sec
Fix-visibility in topmate
2 parents 45961b7 + 61d4af9 commit 6ead0bc

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

src/components/topmate/TopMateCard.tsx

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,18 @@ const TopMateCard: React.FC<TopMateCardProps> = ({
9696
</a>
9797
</div>
9898
</div>
99-
<img
100-
src="/icons/topmate.png"
101-
alt="Topmate"
102-
className="h-4 w-auto opacity-80"
103-
/>
99+
<div className="flex items-center gap-2">
100+
{/* Show only the circular icon part of the Topmate logo */}
101+
<div className="h-4 w-4 overflow-hidden flex-shrink-0 rounded-sm">
102+
<img
103+
src="/icons/topmate.png"
104+
alt="Topmate icon"
105+
className="h-4 w-auto object-cover object-left opacity-90"
106+
/>
107+
</div>
108+
{/* Theme-aware text to ensure readability on dark backgrounds */}
109+
<span className={`text-sm font-semibold ${isDark ? 'text-gray-200' : 'text-gray-700'}`}>topmate</span>
110+
</div>
104111
</div>
105112
</div>
106113

0 commit comments

Comments
 (0)