mirror of
https://github.com/AmintaCCCP/GithubStarsManager.git
synced 2025-11-25 10:38:18 +08:00
0.1.4
This commit is contained in:
@@ -410,8 +410,7 @@ export const RepositoryCard: React.FC<RepositoryCardProps> = ({
|
|||||||
{/* Category Display */}
|
{/* Category Display */}
|
||||||
{displayCategory && (
|
{displayCategory && (
|
||||||
<div className="mb-3">
|
<div className="mb-3">
|
||||||
<span className="inline-flex items-center px-2 py-1 bg-indigo-100 text-indigo-700 dark:bg-indigo-900 dark:text-indigo-300 rounded-md text-xs font-medium">
|
<span className="inline-flex items-center px-2 py-1 bg-blue-100 text-blue-700 dark:bg-blue-900 dark:text-blue-300 rounded-md text-xs font-medium">
|
||||||
<Tag className="w-3 h-3 mr-1" />
|
|
||||||
{displayCategory}
|
{displayCategory}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -423,13 +422,8 @@ export const RepositoryCard: React.FC<RepositoryCardProps> = ({
|
|||||||
{displayTags.tags.slice(0, 3).map((tag, index) => (
|
{displayTags.tags.slice(0, 3).map((tag, index) => (
|
||||||
<span
|
<span
|
||||||
key={index}
|
key={index}
|
||||||
className={`px-2 py-1 rounded-md text-xs font-medium ${displayTags.isCustom
|
className="px-2 py-1 rounded-md text-xs font-medium bg-blue-100 text-blue-700 dark:bg-blue-900 dark:text-blue-300"
|
||||||
? 'bg-orange-100 text-orange-700 dark:bg-orange-900 dark:text-orange-300'
|
|
||||||
: 'bg-purple-100 text-purple-700 dark:bg-purple-900 dark:text-purple-300'
|
|
||||||
}`}
|
|
||||||
>
|
>
|
||||||
{displayTags.isCustom && <Edit3 className="w-3 h-3 inline mr-1" />}
|
|
||||||
{!displayTags.isCustom && <Tag className="w-3 h-3 inline mr-1" />}
|
|
||||||
{highlightSearchTerm(tag, searchQuery)}
|
{highlightSearchTerm(tag, searchQuery)}
|
||||||
</span>
|
</span>
|
||||||
))}
|
))}
|
||||||
@@ -438,7 +432,7 @@ export const RepositoryCard: React.FC<RepositoryCardProps> = ({
|
|||||||
{repository.topics.slice(0, 2).map((topic, index) => (
|
{repository.topics.slice(0, 2).map((topic, index) => (
|
||||||
<span
|
<span
|
||||||
key={`topic-${index}`}
|
key={`topic-${index}`}
|
||||||
className="px-2 py-1 bg-gray-100 text-gray-700 dark:bg-gray-700 dark:text-gray-300 rounded-md text-xs"
|
className="px-2 py-1 bg-blue-100 text-blue-700 dark:bg-blue-900 dark:text-blue-300 rounded-md text-xs font-medium"
|
||||||
>
|
>
|
||||||
{topic}
|
{topic}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user