Skip to content

Commit

Permalink
fix: padding for props-table actionbar
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Jun 18, 2020
1 parent 99c25f1 commit b68ff6c
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions ui/blocks/src/PropsTable/BasePropsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,18 @@ export const BasePropsTable: FC<BasePropsTableProps> = ({
onChange={onChange}
onClick={onClick}
>
<Table {...groupProps} {...tableProps} columns={columns} data={rows} />
<Table
{...groupProps}
{...tableProps}
columns={columns}
data={rows}
sx={{
th: {
//some space for the action bar
pt: 4,
},
}}
/>
</ConrolsContextProvider>
);
const actions: ActionItems = [];
Expand Down Expand Up @@ -352,15 +363,5 @@ export const BasePropsTable: FC<BasePropsTableProps> = ({
storyId: story?.id,
}),
);
return (
<ActionContainer actions={actions}>
<Box
sx={{
pt: 4,
}}
>
{table}
</Box>
</ActionContainer>
);
return <ActionContainer actions={actions}>{table}</ActionContainer>;
};

0 comments on commit b68ff6c

Please sign in to comment.