From ef088c27adfbaa5e158c035670bf6a436680ce1b Mon Sep 17 00:00:00 2001 From: xoaaC <35452459+xoaaC@users.noreply.github.com> Date: Sat, 3 Dec 2022 15:51:16 +0100 Subject: [PATCH] fix(web): download client table overflow (#522) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * convert client table to grid * too much data * fix(web): download client table overflow • Converted DownloadClient table into a responsive grid. • Overflowing content will now truncate and hovering over it will show you the full value. --- web/src/screens/settings/DownloadClient.tsx | 137 +++++++++----------- 1 file changed, 58 insertions(+), 79 deletions(-) diff --git a/web/src/screens/settings/DownloadClient.tsx b/web/src/screens/settings/DownloadClient.tsx index fe66acd..d3fac7f 100644 --- a/web/src/screens/settings/DownloadClient.tsx +++ b/web/src/screens/settings/DownloadClient.tsx @@ -36,40 +36,42 @@ function DownloadClientSettingsListItem({ client, idx }: DLSettingsItemProps) { }; return ( - - - - - Use setting - - - {client.name} - {client.host} - {DownloadClientTypeNameMap[client.type]} - - - Edit - - - +
  • +
    + +
    + + Use setting + +
    +
    {client.name}
    +
    {client.host}
    +
    {DownloadClientTypeNameMap[client.type]}
    +
    + + Edit + +
    +
    +
  • ); } @@ -110,52 +112,29 @@ function DownloadClientSettings() { -
    +
    {data && data.length > 0 ? -
    -
    -
    - - - - - - - - - - - - {data && data.map((client, idx) => ( - - ))} - -
    - Enabled - - Name - - Host - - Type - - Edit -
    -
    -
    -
    +
    +
      +
    1. +
      + Enabled +
      +
      + Name +
      +
      + Host +
      +
      + Type +
      +
    2. + {data && data.map((client, idx) => ( + + ))} +
    +
    : }