From 780c3f8f04c623c844c2aba838fb43586e60d3ee Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 16 Apr 2024 20:38:31 -0400 Subject: [PATCH] fix: Settings table layout on mobile closes #6807 --- app/components/Table.tsx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/app/components/Table.tsx b/app/components/Table.tsx index 52d01ef4fd..f58ff4047f 100644 --- a/app/components/Table.tsx +++ b/app/components/Table.tsx @@ -116,7 +116,7 @@ function Table({ const showPlaceholder = isLoading && data.length === 0; return ( - <> +
@@ -189,7 +189,7 @@ function Table({ )} )} - +
); } @@ -239,7 +239,7 @@ const AscSortIcon = styled(DescSortIcon)` const InnerTable = styled.table` border-collapse: collapse; margin: 16px 0; - width: 100%; + min-width: 100%; `; const SortWrapper = styled(Flex)<{ $sortable: boolean }>` @@ -261,6 +261,7 @@ const Cell = styled.td` padding: 10px 6px; border-bottom: 1px solid ${s("divider")}; font-size: 14px; + text-wrap: nowrap; &:first-child { font-size: 15px; @@ -273,6 +274,12 @@ const Cell = styled.td` vertical-align: bottom; } + &.actions { + background: ${s("background")}; + position: sticky; + right: 0; + } + ${NudeButton} { &:hover, &[aria-expanded="true"] { @@ -299,8 +306,6 @@ const Row = styled.tr` const Head = styled.th` text-align: left; - position: sticky; - top: 54px; padding: 6px 6px 0; border-bottom: 1px solid ${s("divider")}; background: ${s("background")};