Skip to content

Commit

Permalink
fix: increase the text widget initial size
Browse files Browse the repository at this point in the history
  • Loading branch information
Chandru-HM authored and diehbria committed Nov 21, 2023
1 parent 51be7da commit 7d7918d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions packages/dashboard/src/customization/widgets/constants.ts
Expand Up @@ -16,3 +16,6 @@ export const TABLE_OVERFLOW_HEIGHT = 200;

export const STATUS_WIDGET_INITIAL_HEIGHT = 200;
export const STATUS_WIDGET_INITIAL_WIDTH = 350;

export const TEXT_WIDGET_INITIAL_HEIGHT = 100;
export const TEXT_WIDGET_INITIAL_WIDTH = 200;
5 changes: 3 additions & 2 deletions packages/dashboard/src/customization/widgets/text/plugin.tsx
Expand Up @@ -4,6 +4,7 @@ import TextIcon from './icon';
import type { DashboardPlugin } from '~/customization/api';
import type { TextWidget } from '../types';
import WidgetTile from '~/components/widgets/tile/tile';
import { TEXT_WIDGET_INITIAL_HEIGHT, TEXT_WIDGET_INITIAL_WIDTH } from '../constants';

export const textPlugin: DashboardPlugin = {
install: ({ registerWidget }) => {
Expand All @@ -21,8 +22,8 @@ export const textPlugin: DashboardPlugin = {
value: '',
}),
initialSize: {
height: 50,
width: 150,
height: TEXT_WIDGET_INITIAL_HEIGHT,
width: TEXT_WIDGET_INITIAL_WIDTH,
},
});
},
Expand Down

0 comments on commit 7d7918d

Please sign in to comment.