From ed640fc265eb15ff8c0ba8684be772744249afa3 Mon Sep 17 00:00:00 2001 From: MMP0 Date: Thu, 18 May 2017 10:44:01 +0900 Subject: [PATCH 1/2] Fix line breaks --- templates/home.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/home.html b/templates/home.html index caa246ed..016ebee2 100644 --- a/templates/home.html +++ b/templates/home.html @@ -21,7 +21,7 @@ {{T "D"}}{{ genSortArrows .URL "7" }} {{T "date"}}{{ genSortArrows .URL "2" }} {{T "size"}}{{ genSortArrows .URL "4" }} - {{T "links"}} + {{T "links"}} {{ range .ListTorrents}} {{.Leechers}} {{.Completed}} {{end}} - {{.Date}} - {{.Filesize}} - + {{.Date}} + {{.Filesize}} + From 7401f24fb01870fa822bd92a04c226df5efd54bd Mon Sep 17 00:00:00 2001 From: MMP0 Date: Thu, 18 May 2017 10:47:05 +0900 Subject: [PATCH 2/2] Update style.css --- public/css/style.css | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/public/css/style.css b/public/css/style.css index d351e00a..e67728d0 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -120,10 +120,6 @@ td { font-family: monospace; } -.torrent-info .filesize { - white-space: nowrap; -} - .comment-row td:first-of-type { vertical-align: top; text-align: left; @@ -131,6 +127,10 @@ td { } /* Table style & fixes */ +.table > tbody > tr > th, .nowrap { + white-space: nowrap; +} + .table > tbody > tr > td { /* fix bootstrap uglyness */ vertical-align: middle; @@ -146,10 +146,6 @@ td { grid-template-columns: 240px; } -tr.torrent-info td.date { - white-space: nowrap; -} - .custom-table-hover > tbody > tr:hover { opacity: 0.82; }