Skip to content

Commit

Permalink
Merge pull request #83 from JamesMGreene/fix-repo-name-display
Browse files Browse the repository at this point in the history
Adjust display of the repository owner and name
  • Loading branch information
seanmarcia authored Nov 27, 2023
2 parents 1f67dd5 + 3b25420 commit eeeb46c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 20 deletions.
13 changes: 7 additions & 6 deletions components/RepositoryItemTopBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ export const RepositoryItemTopBar = ({
target="_blank"
title={`Open ${repositoryOwner}/${repositoryName} on GitHub`}
>
<div className="repo-item__name">
<h3>
{repositoryName}
</h3>
<h3>
<div className="repo-item__owner">
&nbsp;/ {repositoryOwner}
{repositoryOwner}
</div>
<span>&nbsp;/&nbsp;</span>
<div className="repo-item__name">
{repositoryName}
</div>
</div>
</h3>
</a>

<RepositoryIssueNumberIndicator
Expand Down
22 changes: 8 additions & 14 deletions styles/globals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -119,25 +119,19 @@ base, html {
@media(min-width: 1012px) {
margin-bottom: 32px;
}
}

.repo-item__name {
display: flex;
color: #096BDE;
font-size: 16px;
line-height: 1.5;

h3 {
display: flex;
color: #096BDE;
font-size: 16px;
line-height: 1.5;
font-weight: 400;
}
.repo-item__owner {
font-weight: 600;
}

@media(min-width: 1012px) {
font-size: 24px;
h3 {
.repo-item__name {
font-weight: 600;
}

@media(min-width: 1012px) {
font-size: 24px;
}
}
Expand Down

0 comments on commit eeeb46c

Please sign in to comment.