Skip to content

Commit

Permalink
FIX: mobile search thumbnails
Browse files Browse the repository at this point in the history
  • Loading branch information
merefield committed Apr 6, 2021
1 parent 41e3461 commit 60b7451
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
15 changes: 0 additions & 15 deletions assets/javascripts/discourse/components/search-result-entry.js.es6

This file was deleted.

Expand Up @@ -7,5 +7,18 @@ import { withPluginApi } from "discourse/lib/plugin-api";

export default {
name: "search-previews-init",
initialize(container, app) {},
initialize(container, app) {
withPluginApi("0.8.12", (api) => {
api.modifyClass("component:search-result-entry", {
@discourseComputed
thumbnailOpts() {
let opts = { tilesStyle: true };

opts["thumbnailWidth"] = "100";

return opts;
},
});
});
},
};

0 comments on commit 60b7451

Please sign in to comment.