From 150e4342c3a30b8cbe5432b67c0e87f17d3e0b0d Mon Sep 17 00:00:00 2001 From: Ian Kent Date: Sat, 26 Apr 2014 14:43:54 +0100 Subject: [PATCH] Improve web UI message list --- mailhog/templates/index.go | 67 ++++++++++++++++++++++++++++++------- mailhog/templates/layout.go | 1 + 2 files changed, 55 insertions(+), 13 deletions(-) diff --git a/mailhog/templates/index.go b/mailhog/templates/index.go index 765e236..6959a2f 100644 --- a/mailhog/templates/index.go +++ b/mailhog/templates/index.go @@ -7,24 +7,34 @@ func Index() string { padding-top: 51px; height: 30%; min-height: 280px; - border-bottom: 1px solid #CCCCCC; + border-bottom: 1px solid #999; } #messages-container { height: 100%; - overflow-y: scroll; } .preview #headers { border-bottom: 1px solid #DDDDDD; } .selected { - background: #DADAFA; + background: #0066CC; + color: #fff; } table td, table th { - padding: 2px 4px 2px 4px !important; + padding: 2px 4px 2px 8px !important; + } + #messages-container table tbody { + overflow: auto; + height: 263px; } table thead { background: #eee; } + #messages-container > table > thead > tr, #messages-container > table > tbody { + display: block; + } + table th:not(:last-child) { + border-right: 2px solid #DDD; + } table#headers { margin-bottom: 1px; background: #eee; @@ -53,12 +63,41 @@ func Index() string { }