diff --git a/client/src/App.css b/client/src/App.css index 9b741da..eb63852 100644 --- a/client/src/App.css +++ b/client/src/App.css @@ -165,7 +165,7 @@ h1 { padding: 0; } - .ais-Hits-list { + .ais-Hits-list, .ais-InfiniteHits-list { grid-template-columns: 1fr; } } diff --git a/client/src/App.js b/client/src/App.js index c66bca8..d9ef738 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -25,6 +25,7 @@ const { searchClient } = instantMeiliSearch( { finitePagination: false, placeholderSearch: true, + attributesToSnippet: ['text:40'], } ); @@ -40,7 +41,9 @@ const placeholders = [ 'we are not the same', 'anarchy', 'goblin', - 'wise' + 'wise', + 'look inside', + 'gorilla warfare', ] @@ -69,8 +72,8 @@ const App = () => ( ); const Hit = ({ hit }) => ( -
- +
+ {hit.text}
diff --git a/src/util.reset.meili.ts b/src/util.reset.meili.ts new file mode 100644 index 0000000..ea24c84 --- /dev/null +++ b/src/util.reset.meili.ts @@ -0,0 +1,6 @@ +import "dotenv/config" + +import createServices from "./services" +const { memes } = await createServices() +await memes.resetMeili(); +