diff --git a/css/style.css b/css/style.css index e19ea3c3..321af57c 100644 --- a/css/style.css +++ b/css/style.css @@ -35,10 +35,6 @@ body { padding: 0; } -/*.blockBody { - padding: 1rem; -}*/ - .torrentNav { text-align: center; } @@ -76,7 +72,7 @@ a { word-wrap: break-word; } -.torrent-info .hash { +.torrent-hash { font-family: monospace; } @@ -90,6 +86,14 @@ a { vertical-align: middle; } +.table > tbody > tr > th, .table > tbody > tr > td { + padding: 4px; +} + +tr.torrent-info td.date { + white-space: nowrap; +} + .custom-table-hover > tbody > tr:hover { opacity: 0.82; } @@ -99,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;} 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}}"> -