From 4422f3840eb1a457ffcc72601b29b3c2ffd4872a Mon Sep 17 00:00:00 2001 From: Justin Hawkins Date: Tue, 7 Jun 2022 19:59:33 +0930 Subject: [PATCH] Fix bug where column headings were displayed incorrectly on small screens --- web/templates/manage_results_column_header.html | 2 +- web/web.go | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/web/templates/manage_results_column_header.html b/web/templates/manage_results_column_header.html index a6b18f3..230a6cf 100644 --- a/web/templates/manage_results_column_header.html +++ b/web/templates/manage_results_column_header.html @@ -1,3 +1,3 @@ -{{ .Name }} {{ .TitleArrow }} +{{ .Name }} {{ .TitleArrow }} diff --git a/web/web.go b/web/web.go index 90cbf4f..ee1c577 100644 --- a/web/web.go +++ b/web/web.go @@ -46,6 +46,7 @@ type ColumnInfo struct { Name string Param string Sorted string + Class string } func (c ColumnInfo) URLString() string { @@ -123,8 +124,8 @@ func Create(bmm *db.BookmarkManager, cmm *db.ConfigManager) *Server { meta := gin.H{"config": config, "bookmarks": allBookmarks} colTitle := &ColumnInfo{Name: "Title/URL", Param: "title"} - colCreated := &ColumnInfo{Name: "Created", Param: "created"} - colScraped := &ColumnInfo{Name: "Scraped", Param: "scraped"} + colCreated := &ColumnInfo{Name: "Created", Param: "created", Class: "show-for-large"} + colScraped := &ColumnInfo{Name: "Scraped", Param: "scraped", Class: "show-for-large"} if sort == "title" { colTitle.Sorted = "asc" }