From 62b210b5443c8ee3254ddadb4b0757809bb2d3aa Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Wed, 6 Jan 2016 22:18:17 -0700 Subject: [PATCH] browse: Minor changes to improve icon positioning in template Also make sure column header cells don't wrap --- caddy/setup/browse.go | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/caddy/setup/browse.go b/caddy/setup/browse.go index 1250659b..40d5746e 100644 --- a/caddy/setup/browse.go +++ b/caddy/setup/browse.go @@ -182,6 +182,7 @@ th { padding-top: 15px; padding-bottom: 15px; font-size: 16px; + white-space: nowrap; } th a { @@ -198,8 +199,6 @@ td { td:first-child { width: 50%; - overflow-wrap: break-word; - word-break: break-word; } th:last-child, @@ -207,6 +206,16 @@ td:last-child { text-align: right; } +td:first-child svg { + position: absolute; +} + +td .name { + margin-left: 1.75em; + word-break: break-all; + overflow-wrap: break-word; +} + footer { padding: 40px 20px; font-size: 12px; @@ -335,13 +344,13 @@ footer { {{range .Items}} - + {{if .IsDir}} {{else}} {{end}} - {{.Name}} + {{.Name}} {{.HumanSize}}