Vanessa 2022-07-05 23:58:38 +08:00
parent d0454be592
commit fc243e9224
2 changed files with 8 additions and 0 deletions

View file

@ -160,6 +160,13 @@
box-sizing: border-box;
border-radius: 0 0 4px 4px;
overflow: hidden;
.b3-chip--secondary {
padding: 2px 8px;
display: inline;
margin-right: 8px;
font-size: 12px;
}
}
&__repoheader {

View file

@ -119,6 +119,7 @@ const renderRepoItem = (response: IWebSocketData, element: Element, type: string
response.data.snapshots.forEach((item: { memo: string, id: string, hCreated: string, count: number, hSize: string, tag: string }) => {
repoHTML += `<li class="b3-list-item b3-list-item--hide-action" data-id="${item.id}" data-tag="${item.tag}">
<div class="b3-list-item__text">
<span class="b3-chip b3-chip--secondary${item.tag ? "" : " fn__none"}">${item.tag}</span>
${item.hCreated}<span class="fn__space"></span>
${escapeHtml(item.memo)}
<span class="b3-list-item__meta">${item.hSize}</span>