Fix bug where column headings were displayed incorrectly on small screens
This commit is contained in:
parent
ffcf7c0438
commit
4422f3840e
@ -1,3 +1,3 @@
|
|||||||
|
|
||||||
<th hx-post="/manage/results?sort={{ .URLString }}" hx-target="#manage-results">{{ .Name }} {{ .TitleArrow }}
|
<th class="{{ .Class }}" hx-post="/manage/results?sort={{ .URLString }}" hx-target="#manage-results">{{ .Name }} {{ .TitleArrow }}
|
||||||
</th>
|
</th>
|
||||||
|
@ -46,6 +46,7 @@ type ColumnInfo struct {
|
|||||||
Name string
|
Name string
|
||||||
Param string
|
Param string
|
||||||
Sorted string
|
Sorted string
|
||||||
|
Class string
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c ColumnInfo) URLString() 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}
|
meta := gin.H{"config": config, "bookmarks": allBookmarks}
|
||||||
|
|
||||||
colTitle := &ColumnInfo{Name: "Title/URL", Param: "title"}
|
colTitle := &ColumnInfo{Name: "Title/URL", Param: "title"}
|
||||||
colCreated := &ColumnInfo{Name: "Created", Param: "created"}
|
colCreated := &ColumnInfo{Name: "Created", Param: "created", Class: "show-for-large"}
|
||||||
colScraped := &ColumnInfo{Name: "Scraped", Param: "scraped"}
|
colScraped := &ColumnInfo{Name: "Scraped", Param: "scraped", Class: "show-for-large"}
|
||||||
if sort == "title" {
|
if sort == "title" {
|
||||||
colTitle.Sorted = "asc"
|
colTitle.Sorted = "asc"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user