From f8d35d9acd867bcb05aca9c249855065671824ba Mon Sep 17 00:00:00 2001 From: sfan5 Date: Fri, 5 May 2017 22:09:41 +0200 Subject: [PATCH 1/5] Tighter tables --- css/style.css | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/css/style.css b/css/style.css index e19ea3c3..61a503f8 100644 --- a/css/style.css +++ b/css/style.css @@ -35,10 +35,6 @@ body { padding: 0; } -/*.blockBody { - padding: 1rem; -}*/ - .torrentNav { text-align: center; } @@ -90,6 +86,11 @@ a { vertical-align: middle; } +.table > tbody > tr > th, .table > tbody > tr > td { + padding: 4px; +} + + .custom-table-hover > tbody > tr:hover { opacity: 0.82; } From 1ded818c4a532b59d03ea560516b0d28d03515eb Mon Sep 17 00:00:00 2001 From: sfan5 Date: Fri, 5 May 2017 22:13:38 +0200 Subject: [PATCH 2/5] Infohash is monospace again --- css/style.css | 2 +- templates/view.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/css/style.css b/css/style.css index 61a503f8..6e30e452 100644 --- a/css/style.css +++ b/css/style.css @@ -72,7 +72,7 @@ a { word-wrap: break-word; } -.torrent-info .hash { +.torrent-hash { font-family: monospace; } diff --git a/templates/view.html b/templates/view.html index 53c8cd11..73379b04 100644 --- a/templates/view.html +++ b/templates/view.html @@ -14,7 +14,7 @@ Hash - {{.Hash}} + {{.Hash}} Date From 01546798264450881e2772c56cdc4e3657516640 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Fri, 5 May 2017 22:14:47 +0200 Subject: [PATCH 3/5] Indicate status on view page --- templates/view.html | 2 -- 1 file changed, 2 deletions(-) diff --git a/templates/view.html b/templates/view.html index 73379b04..895bdd9f 100644 --- a/templates/view.html +++ b/templates/view.html @@ -7,8 +7,6 @@ - - Name {{.Name}} From 90c040e4f9982be19603e622c6530cf6c1db1778 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Fri, 5 May 2017 22:29:39 +0200 Subject: [PATCH 4/5] Disable date word-wrap, fixes #68 --- css/style.css | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/css/style.css b/css/style.css index 6e30e452..321af57c 100644 --- a/css/style.css +++ b/css/style.css @@ -90,6 +90,9 @@ a { padding: 4px; } +tr.torrent-info td.date { + white-space: nowrap; +} .custom-table-hover > tbody > tr:hover { opacity: 0.82; @@ -100,4 +103,3 @@ div.container div.blockBody:nth-of-type(2) table tr:first-of-type th:first-of-ty div.container div.blockBody:nth-of-type(2) table tr:first-of-type th:nth-of-type(3){width:15%;} div.container div.blockBody:nth-of-type(2) table tr:first-of-type th:nth-of-type(4){width:19%;} div.container div.blockBody:nth-of-type(2) table tr:first-of-type th:last-of-type{width:6%;} -tr.torrent-info td.hash,tr.torrent-info td.date{word-wrap:break-word;} From 422ff834c27d10802d965b38b1348865ffdfc615 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Fri, 5 May 2017 22:51:30 +0200 Subject: [PATCH 5/5] Force width of category image container --- model/torrent.go | 2 +- templates/home.html | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/model/torrent.go b/model/torrent.go index 58f0aeb3..9ffcd0a9 100644 --- a/model/torrent.go +++ b/model/torrent.go @@ -28,7 +28,7 @@ type Categories struct { type Sub_Categories struct { Id int `gorm:"column:sub_category_id"` - Name string `gorm:"column:Sub_category_name"` + Name string `gorm:"column:sub_category_name"` Parent_id int `gorm:"column:parent_id"` Torrents []Torrents `gorm:"ForeignKey:sub_category_id;AssociationForeignKey:sub_category_id"` } diff --git a/templates/home.html b/templates/home.html index eec8478a..fa3eb538 100644 --- a/templates/home.html +++ b/templates/home.html @@ -21,7 +21,8 @@ {{if eq .Status 2}}remake{{end}} {{if eq .Status 3}}trusted{{end}} {{if eq .Status 4}}aplus{{end}}"> - + +