From e6b3d6117e6a795c8135e1d6e6c611d9861a1138 Mon Sep 17 00:00:00 2001 From: soup Date: Wed, 22 Nov 2023 20:12:18 +0100 Subject: [PATCH] fix(web): improve responsiveness on settings pages (#1270) * fix(web): truncate feed name and adjust margins This is to avoid clipping on narrow screens. Bug: https://i.imgur.com/Aw3FzRK.png * fix(web): fix boundaries and layout on feed page fix(web): align switches on download client, feed and notification page * fix(web): add truncate and margin to feed names * correct truncate change margin to padding * inherit text styles --------- Co-authored-by: martylukyy <35452459+martylukyy@users.noreply.github.com> Co-authored-by: Fabricio Silva --- web/src/screens/settings/DownloadClient.tsx | 2 +- web/src/screens/settings/Feed.tsx | 38 ++++++++++----------- web/src/screens/settings/Notifications.tsx | 2 +- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/web/src/screens/settings/DownloadClient.tsx b/web/src/screens/settings/DownloadClient.tsx index f0fb7b8..6221a7b 100644 --- a/web/src/screens/settings/DownloadClient.tsx +++ b/web/src/screens/settings/DownloadClient.tsx @@ -116,7 +116,7 @@ function ListItem({ client }: DLSettingsItemProps) { isOpen={updateClientIsOpen} toggle={toggleUpdateClient} /> -
+
{data && data.length > 0 ? (
    -
  • +
  • sortedFeeds.requestSort("enabled")}> Enabled {sortedFeeds.getSortIndicator("enabled")}
    sortedFeeds.requestSort("name")}> Name {sortedFeeds.getSortIndicator("name")}
    sortedFeeds.requestSort("type")}> Type {sortedFeeds.getSortIndicator("type")}
    sortedFeeds.requestSort("last_run")}> Last run {sortedFeeds.getSortIndicator("last_run")}
    sortedFeeds.requestSort("next_run")}> Next run {sortedFeeds.getSortIndicator("next_run")}
    @@ -172,36 +172,36 @@ function ListItem({ feed }: ListItemProps) { }; return ( -
  • +
  • -
    -
    +
    +
    -
    - {feed.name} - +
    + {feed.name} + {feed.indexer}
    -
    +
    {ImplementationBadges[feed.type.toLowerCase()]}
    -
    +
    {IsEmptyDate(feed.last_run)}
    -
    +
    {IsEmptyDate(feed.next_run)}
    -
    +
    { queryClient.invalidateQueries({ queryKey: feedKeys.lists() }); toast.custom((t) => ); - toggleForceRunModal(); + toggleForceRunModal(); }, onError: (error: any) => { toast.custom((t) => , { duration: 10000 - }); - toggleForceRunModal(); + }); + toggleForceRunModal(); } }); diff --git a/web/src/screens/settings/Notifications.tsx b/web/src/screens/settings/Notifications.tsx index 0d37dd9..3092b6c 100644 --- a/web/src/screens/settings/Notifications.tsx +++ b/web/src/screens/settings/Notifications.tsx @@ -137,7 +137,7 @@ function ListItem({ notification }: ListItemProps) {
    -
    +