Skip to content

Commit

Permalink
Fix sizing of grid for extreme cases
Browse files Browse the repository at this point in the history
  • Loading branch information
nmklotas committed Oct 22, 2017
1 parent 8676d16 commit 6668c94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/GitlabCLI.Console/GitLabIssueHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ public async Task ListIssues(ListIssuesParameters parameters)
{
_presenter.ShowGrid(
$"Found ({issues.Count}) issues in project {parameters.Project}",
new GridColumn<int>("Issue Id", 20, issues.Select(s => s.Id)),
new GridColumn("Title", 150, issues.Select(s => s.Title)),
new GridColumn("Description", 50, issues.Select(s => s.Description)));
new GridColumn("Issue Id", 20, issues.Select(s => "#" + s.Id.ToString())),
new GridColumn("Title", 100, issues.Select(s => s.Title)),
new GridColumn("Description", 100, issues.Select(s => s.Description)));
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion src/GitlabCLI.Console/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"profiles": {
"GitLabCmd.Console": {
"commandName": "Project",
"commandLineArgs": "issue list -l Windows,\"To Do\""
"commandLineArgs": "issue list -l Windows"
}
}
}

0 comments on commit 6668c94

Please sign in to comment.