From b8a2295ce6b8ded25b6f073d3617cee59ff494b1 Mon Sep 17 00:00:00 2001 From: NyaaaDoge Date: Thu, 31 Oct 2024 20:15:14 +0800 Subject: [PATCH] fix: show scrollbar when list table overflows in settings menu --- .../src/modules/settings/tabs/lists/index.tsx | 244 +++++++++--------- 1 file changed, 123 insertions(+), 121 deletions(-) diff --git a/apps/renderer/src/modules/settings/tabs/lists/index.tsx b/apps/renderer/src/modules/settings/tabs/lists/index.tsx index 0f12bce869..289f0cd57e 100644 --- a/apps/renderer/src/modules/settings/tabs/lists/index.tsx +++ b/apps/renderer/src/modules/settings/tabs/lists/index.tsx @@ -101,128 +101,130 @@ export const SettingLists = () => {
{listList.data?.length ? ( - - - - {t.settings("lists.title")} - {t.settings("lists.view")} - {t.settings("lists.fee.label")} - {t.settings("lists.subscriptions")} - {t.settings("lists.earnings")} - - {t.common("words.actions")} - - - - - {listList.data?.map((row) => ( - - - - {row.image && ( - - - - )} - {row.title} - - - - - - - {views[row.view].icon} - - - - {t(views[row.view].name)} - - - - -
- {row.fee} - -
-
- {row.subscriptionCount} - - {BigInt(row.purchaseAmount || 0n)} - - - - - - - - {t.common("words.manage")} - - - - - - - - {t.common("words.edit")} - - - - - - present({ - title: t.settings("lists.delete.confirm"), - content: ({ dismiss }) => ( - { - listList.refetch() - dismiss() - }} - /> - ), - }) - } - > - - - - - {t.common("words.delete")} - - - +
+
+ + + {t.settings("lists.title")} + {t.settings("lists.view")} + {t.settings("lists.fee.label")} + {t.settings("lists.subscriptions")} + {t.settings("lists.earnings")} + + {t.common("words.actions")} + - ))} - -
+ + + {listList.data?.map((row) => ( + + + + {row.image && ( + + + + )} + {row.title} + + + + + + + {views[row.view].icon} + + + + {t(views[row.view].name)} + + + + +
+ {row.fee} + +
+
+ {row.subscriptionCount} + + {BigInt(row.purchaseAmount || 0n)} + + + + + + + + {t.common("words.manage")} + + + + + + + + {t.common("words.edit")} + + + + + + present({ + title: t.settings("lists.delete.confirm"), + content: ({ dismiss }) => ( + { + listList.refetch() + dismiss() + }} + /> + ), + }) + } + > + + + + + {t.common("words.delete")} + + + +
+ ))} +
+ +
) : listList.isLoading ? ( ) : (