Skip to content

Commit

Permalink
Adjust column widths
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed May 4, 2022
1 parent 30db8fd commit b0fdbbf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const double kTabletLayoutWidth = 1100;
const double kTabletDialogPadding = 250;

const double kTableColumnWidthMin = 80;
const double kTableColumnWidthMax = 120;
const double kTableColumnWidthMax = 200;

const int kTableListWidthCutoff = 550;
const int kDefaultAnimationDuration = 500;
Expand Down
6 changes: 5 additions & 1 deletion lib/ui/app/tables/entity_datatable.dart
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ class EntityDataTableSource extends AppDataTableSource {
'description',
'email',
'contact_email',
'custom1',
'custom2',
'custom3',
'custom4',
];

return DataRow(
Expand Down Expand Up @@ -143,7 +147,7 @@ class EntityDataTableSource extends AppDataTableSource {
child: entityPresenter.getField(field: field, context: context),
constraints: BoxConstraints(
maxWidth: wideFields.contains(field)
? kTableColumnWidthMax * 2
? kTableColumnWidthMax * 1.5
: kTableColumnWidthMax,
minWidth: kTableColumnWidthMin,
),
Expand Down

0 comments on commit b0fdbbf

Please sign in to comment.