Skip to content

Commit

Permalink
Globally increased the icon size & added exportable story interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxhoundn committed Aug 8, 2023
1 parent 758d37b commit 25a2a96
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/constants/sizes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ export const TEXT_FROM_SIZE = {
};

export const ICON_FROM_SIZE = {
tiny: 11,
small: 14,
normal: 17,
big: 20,
huge: 23,
tiny: 13,
small: 17,
normal: 20,
big: 26,
huge: 33,
};

export const PADDING_FROM_SIZE = {
Expand Down
7 changes: 6 additions & 1 deletion src/stories/KeyValueTable/KeyValueTable.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import ReqoreIcon from '../../components/Icon';
import { IReqoreKeyValueTableProps, ReqoreKeyValueTable } from '../../components/KeyValueTable';
import { IReqoreTableRowData, TReqoreTableColumnContent } from '../../components/Table';
import { TReqorePaginationType } from '../../constants/paging';
import { Exportable as ExportableTable } from '../Table/Table.stories';
import { StoryMeta } from '../utils';
import { CustomIntentArg, FlatArg, IntentArg, SizeArg, argManager } from '../utils/args';

Expand Down Expand Up @@ -117,6 +118,10 @@ export const Exportable: Story = {
exportable: true,
zoomable: true,
},
play: async ({ canvasElement, ...rest }) => {
// @ts-ignore
await ExportableTable.play({ canvasElement, ...rest });
},
};

export const Sortable: Story = {
Expand Down Expand Up @@ -154,7 +159,7 @@ export const AllFiltersActive: Story = {

export const WithActions: Story = {
args: {
rowActions: (key, value) => [
rowActions: () => [
{
icon: 'EditLine',
},
Expand Down

0 comments on commit 25a2a96

Please sign in to comment.