davidberenstein1957 HF staff commited on
Commit
ec2164f
·
1 Parent(s): 340970a

Modify search input styling and temporarily disable search type toggle

Browse files
Files changed (1) hide show
  1. index.html +6 -6
index.html CHANGED
@@ -111,7 +111,7 @@
111
  totalPages: -1,
112
  useTestData: false,
113
  searchQuery: "",
114
- searchType: "semantic",
115
  buttonClass(attr, filter) {
116
  if (this[attr] === filter) {
117
  return "text-orange-600 bg-gradient-to-br from-orange-300 to-orange-100 px-2 md:px-3 py-1 rounded-full";
@@ -233,16 +233,16 @@
233
  x-model="searchQuery"
234
  @input="searchThemes()"
235
  placeholder="Search..."
236
- class="px-3 py-1 border rounded-l-lg"
237
  >
238
- <div class="flex border border-l-0 rounded-r-lg overflow-hidden">
239
- <!-- <button
240
  @click="switchSearchType('semantic')"
241
  :class="searchType === 'semantic' ? 'bg-orange-300 text-white' : 'bg-white text-gray-800'"
242
  class="px-3 py-1"
243
  >
244
  Semantic
245
- </button> -->
246
  <button
247
  @click="switchSearchType('keyword')"
248
  :class="searchType === 'keyword' ? 'bg-orange-300 text-white' : 'bg-white text-gray-800'"
@@ -250,7 +250,7 @@
250
  >
251
  Keyword
252
  </button>
253
- </div>
254
  </div>
255
  </div>
256
  <div class="flex gap-2">
 
111
  totalPages: -1,
112
  useTestData: false,
113
  searchQuery: "",
114
+ searchType: "keyword",
115
  buttonClass(attr, filter) {
116
  if (this[attr] === filter) {
117
  return "text-orange-600 bg-gradient-to-br from-orange-300 to-orange-100 px-2 md:px-3 py-1 rounded-full";
 
233
  x-model="searchQuery"
234
  @input="searchThemes()"
235
  placeholder="Search..."
236
+ class="px-3 py-1 border rounded-lg"
237
  >
238
+ <!-- <div class="flex border border-l-0 rounded-r-lg overflow-hidden">
239
+ <button
240
  @click="switchSearchType('semantic')"
241
  :class="searchType === 'semantic' ? 'bg-orange-300 text-white' : 'bg-white text-gray-800'"
242
  class="px-3 py-1"
243
  >
244
  Semantic
245
+ </button>
246
  <button
247
  @click="switchSearchType('keyword')"
248
  :class="searchType === 'keyword' ? 'bg-orange-300 text-white' : 'bg-white text-gray-800'"
 
250
  >
251
  Keyword
252
  </button>
253
+ </div> -->
254
  </div>
255
  </div>
256
  <div class="flex gap-2">