diff --git a/src/App.vue b/src/App.vue index bc668f1..b27a80a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -168,22 +168,30 @@ export default { return v.replace(re, (matchedText) => `${matchedText}`); }; }, + visibleHeaders() { + const baseHeaders = [ + { title: "Deal", value: "title", align: "center" }, + { title: "Score", value: "score", align: "center", sortable: true }, + ]; + + // Only show Last Post column on desktop + if (!this.isMobile) { + baseHeaders.push({ + title: "Last Post", + value: "last_post_time", + align: "center", + sortable: true, + }); + } + + return baseHeaders; + }, }, };