Skip to content

Commit

Permalink
Make the logs view a little bit more compact (#248)
Browse files Browse the repository at this point in the history
* Make the logs view a little bit more compact

* Give more space to the description

* Give more space to the description

* Give more space to typ

* Give more space to timestamp

* Split the difference
  • Loading branch information
Widcket authored Apr 14, 2021
1 parent 4059a1e commit 3b99e45
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/display/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ func (v *logView) AsTableRow() []string {

conn := v.getConnection()
if conn == notApplicable {
conn = ansi.Faint(truncate(conn, 30))
conn = ansi.Faint(truncate(conn, 25))
} else {
conn = truncate(conn, 30)
conn = truncate(conn, 25)
}

return []string{
typ,
truncate(desc, 50),
ansi.Faint(truncate(timeAgo(v.GetDate()), 20)),
ansi.Faint(truncate(timeAgo(v.GetDate()), 17)),
conn,
clientName,
}
Expand Down Expand Up @@ -122,7 +122,7 @@ func (v *logView) typeDesc() (typ, desc string) {
typ = "..."
}

typ = truncate(chunks[0], 30)
typ = truncate(chunks[0], 22)

if len(chunks) == 2 {
desc = strings.TrimSuffix(chunks[1], ")")
Expand Down

0 comments on commit 3b99e45

Please sign in to comment.