From d3636e328f5247e415753b10b09a4dcc12c5bd1d Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 7 Jul 2022 11:07:00 +0800 Subject: [PATCH] =?UTF-8?q?:lipstick:=20=E7=A7=BB=E5=8A=A8=E7=AB=AF?= =?UTF-8?q?=E5=8E=86=E5=8F=B2=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/assets/scss/_function.scss | 3 ++- app/src/util/history.ts | 17 +++++++++++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/app/src/assets/scss/_function.scss b/app/src/assets/scss/_function.scss index 68debdb32..281a63f08 100644 --- a/app/src/assets/scss/_function.scss +++ b/app/src/assets/scss/_function.scss @@ -162,10 +162,11 @@ overflow: hidden; .b3-chip--secondary { - padding: 2px 8px; + padding: 0 8px; display: inline; margin-right: 8px; font-size: 12px; + line-height: 16px; } } diff --git a/app/src/util/history.ts b/app/src/util/history.ts index 1dbef852c..37137cbd5 100644 --- a/app/src/util/history.ts +++ b/app/src/util/history.ts @@ -123,7 +123,19 @@ const renderRepoItem = (response: IWebSocketData, element: Element, type: string } let repoHTML = ""; response.data.snapshots.forEach((item: { memo: string, id: string, hCreated: string, count: number, hSize: string, tag: string }) => { - repoHTML += `
  • + if (isMobile()) { + repoHTML += `
  • +
    + ${item.tag} + ${item.hCreated} + ${item.hSize} + + ${actionHTML} +
    + ${escapeHtml(item.memo)} +
  • `; + } else { + repoHTML += `
  • ${item.tag} ${item.hCreated} @@ -133,6 +145,7 @@ const renderRepoItem = (response: IWebSocketData, element: Element, type: string
    ${actionHTML}
  • `; + } }); element.lastElementChild.innerHTML = `${repoHTML}`; }; @@ -247,7 +260,7 @@ export const openHistory = () => {
    -