From 6668c9490939b42f0043945d19ce10b820ab3b66 Mon Sep 17 00:00:00 2001 From: nmklotas Date: Mon, 23 Oct 2017 00:14:19 +0300 Subject: [PATCH] Fix sizing of grid for extreme cases --- src/GitlabCLI.Console/GitLabIssueHandler.cs | 6 +++--- src/GitlabCLI.Console/Properties/launchSettings.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/GitlabCLI.Console/GitLabIssueHandler.cs b/src/GitlabCLI.Console/GitLabIssueHandler.cs index cd255f6..c7a4c5a 100644 --- a/src/GitlabCLI.Console/GitLabIssueHandler.cs +++ b/src/GitlabCLI.Console/GitLabIssueHandler.cs @@ -84,9 +84,9 @@ public async Task ListIssues(ListIssuesParameters parameters) { _presenter.ShowGrid( $"Found ({issues.Count}) issues in project {parameters.Project}", - new GridColumn("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 { diff --git a/src/GitlabCLI.Console/Properties/launchSettings.json b/src/GitlabCLI.Console/Properties/launchSettings.json index 454816a..d223699 100644 --- a/src/GitlabCLI.Console/Properties/launchSettings.json +++ b/src/GitlabCLI.Console/Properties/launchSettings.json @@ -2,7 +2,7 @@ "profiles": { "GitLabCmd.Console": { "commandName": "Project", - "commandLineArgs": "issue list -l Windows,\"To Do\"" + "commandLineArgs": "issue list -l Windows" } } } \ No newline at end of file