The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Restore compact table cell buttons (#29312)
Raphaël Bosiac76d1d8aced
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellButtons.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellButtons.tsxindex 5c17c8ab00c..c1061fcf480 100644--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellButtons.tsx+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellButtons.tsx@@ -36,6 +36,7 @@ export const RecordTableCellButtons = ({{buttons.map(({ Icon, onClick, ariaLabel }, index) => (<LightIconButtonkey={index}+ size="xs"aria-label={ariaLabel}onClick={onClick}disabled={!isDefined(onClick)}diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/__stories__/RecordTableCellButtons.stories.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/__stories__/RecordTableCellButtons.stories.tsxindex 6988888a6ff..99ba408a5b3 100644--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/__stories__/RecordTableCellButtons.stories.tsx+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/__stories__/RecordTableCellButtons.stories.tsx@@ -28,7 +28,9 @@ export const Default: Story = {const frameInset =parseFloat(frameStyle.borderLeftWidth) +parseFloat(frameStyle.paddingLeft);- await expect(getComputedStyle(edit).width).toBe('24px');+ await expect(getComputedStyle(edit).width).toBe('20px');+ await expect(getComputedStyle(edit).height).toBe('20px');+ await expect(group.offsetHeight).toBe(26);await expect(getComputedStyle(group).gap).toBe('2px');await expect(parseFloat(getComputedStyle(edit).borderTopLeftRadius)).toBe(parseFloat(frameStyle.borderTopLeftRadius) - frameInset,