Skip to content

Commit

Permalink
Adjust display of the repository owner and name
Browse files Browse the repository at this point in the history
Fixes #80
  • Loading branch information
JamesMGreene committed Nov 22, 2023
1 parent 732d8f2 commit 3b25420
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 3b25420

Please sign in to comment.