@@ -430,26 +430,31 @@ <h4 class="font-medium text-gray-800 text-sm truncate" x-text="lec.sub_title ||
430430 < input x-model ="searchCourseFilterQuery " type ="text "
431431 placeholder ="搜索课程名… "
432432 class ="w-full border-b px-3 py-2 text-sm sticky top-0 bg-white focus:outline-none ">
433- < div class ="border-b px-3 py-2 space-y-1 ">
434- < p class ="text-xs text-gray-400 mb-1 "> 搜索范围</ p >
435- < label class ="flex items-center gap-2 text-sm cursor-pointer ">
436- < input type ="checkbox " :checked ="searchDomains.summary "
437- @change ="toggleSearchDomain('summary') "
438- class ="rounded border-gray-300 text-blue-600 ">
439- < span > 摘要</ span >
440- </ label >
441- < label class ="flex items-center gap-2 text-sm cursor-pointer ">
442- < input type ="checkbox " :checked ="searchDomains.transcript "
443- @change ="toggleSearchDomain('transcript') "
444- class ="rounded border-gray-300 text-blue-600 ">
445- < span > 转录</ span >
446- </ label >
447- < label class ="flex items-center gap-2 text-sm cursor-pointer ">
448- < input type ="checkbox " :checked ="searchDomains.ocr "
449- @change ="toggleSearchDomain('ocr') "
450- class ="rounded border-gray-300 text-blue-600 ">
451- < span > OCR</ span >
452- </ label >
433+ < div class ="border-b px-3 py-2 ">
434+ < p class ="text-xs text-gray-400 mb-1.5 "> 搜索范围</ p >
435+ < div class ="flex flex-wrap gap-1.5 ">
436+ < button @click ="toggleSearchDomain('summary') " type ="button "
437+ class ="text-xs px-3 py-1 rounded-full font-medium transition-colors "
438+ :class ="searchDomains.summary
439+ ? 'bg-blue-100 text-blue-700'
440+ : 'bg-gray-100 text-gray-500 hover:bg-gray-200' ">
441+ 摘要
442+ </ button >
443+ < button @click ="toggleSearchDomain('transcript') " type ="button "
444+ class ="text-xs px-3 py-1 rounded-full font-medium transition-colors "
445+ :class ="searchDomains.transcript
446+ ? 'bg-blue-100 text-blue-700'
447+ : 'bg-gray-100 text-gray-500 hover:bg-gray-200' ">
448+ 转录
449+ </ button >
450+ < button @click ="toggleSearchDomain('ocr') " type ="button "
451+ class ="text-xs px-3 py-1 rounded-full font-medium transition-colors "
452+ :class ="searchDomains.ocr
453+ ? 'bg-blue-100 text-blue-700'
454+ : 'bg-gray-100 text-gray-500 hover:bg-gray-200' ">
455+ OCR
456+ </ button >
457+ </ div >
453458 </ div >
454459 < template x-for ="c in searchCourseOptionsFiltered " :key ="c.course_id ">
455460 < label class ="flex items-center gap-2 px-3 py-1.5 hover:bg-gray-50 text-sm cursor-pointer ">
0 commit comments