Skip to content

Commit

Permalink
feat: add issue number and format
Browse files Browse the repository at this point in the history
  • Loading branch information
zugdev committed Dec 17, 2024
1 parent 1d3f0d2 commit 9ea36aa
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 10 deletions.
7 changes: 5 additions & 2 deletions src/home/rendering/render-github-notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,11 @@ function setUpIssueElement(issueElement: HTMLDivElement, notification: GitHubAgg
<h3>${notification.notification.subject.title}</h3>
</div>
<div class="partner">
<p class="organization-name">${organizationName}</p>
<p class="repository-name">${repositoryName}</p>
<div class="full-repo-name">
<p class="organization-name">${organizationName}</p>
<p class="repository-name">${repositoryName}</p>
</div>
<p class="issue-number">#${notification.notification.subject.url.split("/").slice(-1)}</p>
</div>
</div>
</div>
Expand Down
13 changes: 9 additions & 4 deletions static/style/inverted-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,10 @@
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-top: 2px;
}
.text-info > .partner > * {
display: inline-block;
display: flex;
align-items: start;
padding: 6px 0px 8px 0px;
gap: 4px;
}
body {
display: flex;
Expand Down Expand Up @@ -445,6 +445,11 @@
.partner {
margin-top: 0;
}
.full-repo-name {
display: unset;
display: flex;
width: auto;
}
.issue-element-inner > * {
max-width: unset;
}
Expand Down
13 changes: 9 additions & 4 deletions static/style/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,10 @@
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-top: 2px;
}
.text-info > .partner > * {
display: inline-block;
display: flex;
align-items: start;
padding: 6px 0px 8px 0px;
gap: 4px;
}
body {
display: flex;
Expand Down Expand Up @@ -445,6 +445,11 @@
.partner {
margin-top: 0;
}
.full-repo-name {
display: unset;
display: flex;
width: auto;
}
.issue-element-inner > * {
max-width: unset;
}
Expand Down

0 comments on commit 9ea36aa

Please sign in to comment.