File tree Expand file tree Collapse file tree 3 files changed +50
-8
lines changed
Expand file tree Collapse file tree 3 files changed +50
-8
lines changed Original file line number Diff line number Diff line change @@ -23,3 +23,8 @@ npm-debug.log*
2323yarn-debug.log *
2424yarn-error.log *
2525
26+ .firebaserc
27+
28+ firebase.json
29+
30+ /.firebase
Original file line number Diff line number Diff line change @@ -332,12 +332,30 @@ const Repo: React.FC = () => {
332332 ) : (
333333 < >
334334 < div className = "commiter" >
335- { /* {repoCommits[0]?.author?.avatar_url && <img src={repoCommits[0].author.avatar_url} alt={repoCommits[0].author.login} /> }
336- {repoCommits[0]?.author?.login && <span className="user">{repoCommits[0].author.login}</span> }
337- {repoCommits[0]?.commit?.message && <span className="message">{repoCommits[0].commit.message}</span> } */ }
338- < img src = "https://avatars0.githubusercontent.com/u/10172199?v=4" alt = "Leonardo Ronne" />
339- < span className = "user" > leoronne</ span >
340- < span className = "message" > Mensagem teste</ span >
335+ { repoCommits [ 0 ] ?. author ?. avatar_url && (
336+ < a href = { `/${ repoCommits [ 0 ] . author . login } ` } data-tip = { `Go to ${ repoCommits [ 0 ] . author . login } profile` } target = "_blank" rel = "noopener noreferrer" >
337+ < img src = { repoCommits [ 0 ] . author . avatar_url } alt = { repoCommits [ 0 ] . author . login } />
338+ </ a >
339+ ) }
340+ { repoCommits [ 0 ] ?. author ?. login && (
341+ < span className = "user" >
342+ < a
343+ href = { `https://github.com/${ username } /${ reponame } /commits?author=${ repoCommits [ 0 ] ?. author ?. login } ` }
344+ data-tip = { `See commits from ${ repoCommits [ 0 ] . author . login } ` }
345+ target = "_blank"
346+ rel = "noopener noreferrer"
347+ >
348+ { repoCommits [ 0 ] . author . login }
349+ </ a >
350+ </ span >
351+ ) }
352+ { repoCommits [ 0 ] ?. commit ?. message && (
353+ < span className = "message" >
354+ < a href = { `https://github.com/${ username } /${ reponame } /commit/${ repoCommits [ 0 ] . sha } ` } data-tip = "See commit on GitHub" target = "_blank" rel = "noopener noreferrer" >
355+ { repoCommits [ 0 ] . commit . message }
356+ </ a >
357+ </ span >
358+ ) }
341359 </ div >
342360 < div className = "commiter-sha" >
343361 < CheckIcon />
Original file line number Diff line number Diff line change @@ -187,14 +187,14 @@ export const RightSide = styled.div`
187187
188188export const RepoInfoHeader = styled . div `
189189 height: 50px;
190- padding: 5px ;
190+ padding: 10px ;
191191 border: 1px solid var(--border);
192192 background-color: var(--repoHeader);
193193 position: absolute;
194194 width: 100%;
195195 top: 0;
196196 display: grid;
197- grid-template-columns: auto 100px 130px 120px;
197+ grid-template-columns: auto 100px 140px 120px;
198198 grid-gap: 10px;
199199 align-items: center;
200200
@@ -204,9 +204,26 @@ export const RepoInfoHeader = styled.div`
204204 padding-left: 5px;
205205 }
206206
207+ > .commiter {
208+ display: flex;
209+ align-items: center;
210+ > a img {
211+ max-width: 30px;
212+ border-radius: 50%;
213+ }
214+ > .user {
215+ font-weight: 600;
216+ }
217+ > span {
218+ font-size: 16px;
219+ margin-left: 15px;
220+ }
221+ }
222+
207223 > .commiter-sha {
208224 display: flex;
209225 align-items: center;
226+ justify-content: flex-end;
210227 > svg {
211228 margin-top: 2px;
212229 }
@@ -221,11 +238,13 @@ export const RepoInfoHeader = styled.div`
221238 font-size: 16px;
222239 display: flex;
223240 align-items: center;
241+ justify-content: flex-end;
224242 }
225243
226244 > .number-commits {
227245 display: flex;
228246 align-items: center;
247+ justify-content: flex-end;
229248 > svg {
230249 margin-top: 2px;
231250 }
You can’t perform that action at this time.
0 commit comments