The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
fix: Blocklist table optimised for all viewports (#7618)
Harshit Singha45d3148ac37
diff --git a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsBlocklistTable.tsx b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsBlocklistTable.tsxindex a4c9f5306fa..3d513dc1eff 100644--- a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsBlocklistTable.tsx+++ b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsBlocklistTable.tsx@@ -1,11 +1,10 @@-import styled from '@emotion/styled';-import { BlocklistItem } from '@/accounts/types/BlocklistItem';import { SettingsAccountsBlocklistTableRow } from '@/settings/accounts/components/SettingsAccountsBlocklistTableRow';import { Table } from '@/ui/layout/table/components/Table';import { TableBody } from '@/ui/layout/table/components/TableBody';import { TableHeader } from '@/ui/layout/table/components/TableHeader';import { TableRow } from '@/ui/layout/table/components/TableRow';+import styled from '@emotion/styled';type SettingsAccountsBlocklistTableProps = {blocklist: BlocklistItem[];@@ -28,7 +27,10 @@ export const SettingsAccountsBlocklistTable = ({<>{blocklist.length > 0 && (<StyledTable>- <TableRow>+ <TableRow+ gridAutoColumns="200px 1fr 20px"+ mobileGridAutoColumns="120px 1fr 20px"+ ><TableHeader>Email/Domain</TableHeader><TableHeader>Added to blocklist</TableHeader><TableHeader></TableHeader>diff --git a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsBlocklistTableRow.tsx b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsBlocklistTableRow.tsxindex 9a1148447a1..30cf3a37a31 100644--- a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsBlocklistTableRow.tsx+++ b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsBlocklistTableRow.tsx@@ -1,4 +1,4 @@-import { IconX } from 'twenty-ui';+import { IconX, OverflowingTextWithTooltip } from 'twenty-ui';import { BlocklistItem } from '@/accounts/types/BlocklistItem';import { IconButton } from '@/ui/input/button/components/IconButton';@@ -16,8 +16,14 @@ export const SettingsAccountsBlocklistTableRow = ({onRemove,}: SettingsAccountsBlocklistTableRowProps) => {return (- <TableRow key={blocklistItem.id}>- <TableCell>{blocklistItem.handle}</TableCell>+ <TableRow+ key={blocklistItem.id}+ gridAutoColumns="200px 1fr 20px"+ mobileGridAutoColumns="120px 1fr 20px"+ >+ <TableCell>+ <OverflowingTextWithTooltip text={blocklistItem.handle} />+ </TableCell><TableCell>{blocklistItem.createdAt? formatToHumanReadableDate(blocklistItem.createdAt)