File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
src/features/feed/components Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 103103 background : var (--card-background-color );
104104 border-bottom : 12px solid green;
105105}
106+ .repo .logo {
107+ width : 64px ;
108+ height : 64px ;
109+ border-radius : 4px ;
110+ margin : 0 auto;
111+ }
106112.repo .title {
107113 font-size : 1.4rem ;
108114 color : var (--card-header-text-color );
Original file line number Diff line number Diff line change 1- import { SiGithub } from 'react-icons/si'
21import { VscRepoForked , VscStarFull } from 'react-icons/vsc'
32import { CardItemWithActions , ColoredLanguagesBadge } from 'src/components/Elements'
43import { useUserPreferences } from 'src/stores/preferences'
@@ -13,7 +12,7 @@ function numberWithCommas(x: number | string) {
1312export const RepoFeedItem = ( props : BaseItemPropsType < GithubFeedItemData > ) => {
1413 const { item, analyticsTag, className } = props
1514 const { listingMode } = useUserPreferences ( )
16-
15+ const repoOwner = item . url . split ( '/' ) [ 3 ]
1716 return (
1817 < div className = { className } >
1918 < CardItemWithActions
@@ -26,7 +25,7 @@ export const RepoFeedItem = (props: BaseItemPropsType<GithubFeedItemData>) => {
2625 source = "github"
2726 fallbackImage = {
2827 < div className = "rowCover repo" >
29- < SiGithub size = { 40 } />
28+ < img src = { `https://github.com/ ${ repoOwner } .png?size=128` } className = "logo" />
3029 < p className = "title" > { item . title } </ p >
3130 < p className = "description" > { item . description } </ p >
3231 < div className = "details" >
You can’t perform that action at this time.
0 commit comments