diff --git a/lms/lms/doctype/lms_course/lms_course.py b/lms/lms/doctype/lms_course/lms_course.py index 6299bced..0019f743 100644 --- a/lms/lms/doctype/lms_course/lms_course.py +++ b/lms/lms/doctype/lms_course/lms_course.py @@ -176,7 +176,7 @@ def search_course(text): "short_introduction": ["like", f"%{text}%"], "description": ["like", f"%{text}%"], }, - fields=["name", "title", "image"], + fields=["name", "title"], ) return courses diff --git a/lms/public/css/style.css b/lms/public/css/style.css index e5b219be..0cf5472e 100644 --- a/lms/public/css/style.css +++ b/lms/public/css/style.css @@ -929,13 +929,16 @@ pre { } .search { + background-image: url(/assets/frappe/icons/timeless/search.svg); + background-repeat: no-repeat; + background-position: 1rem; + text-indent: 1rem; border: none; - border-radius: var(--border-radius-md); - font-size: var(--text-base); - padding: 0.625rem 0.75rem; - height: 36px; - width: 80%; - box-shadow: var(--shadow-base); + border-radius: var(--border-radius-md); + font-size: var(--text-base); + padding: 1.5rem; + height: 36px; + width: 100%; } .search:focus { @@ -1934,7 +1937,9 @@ select { .modal-inner { background: #ffffff; - margin: 15% auto 2rem; + margin: 15% auto 2rem; + width: 70%; + border-radius: var(--border-radius-md); } @@ -1951,3 +1956,28 @@ select { text-decoration: none; cursor: pointer; } + +.result-row { + display: block; + padding: 1rem; + border-top: 1px solid var(--gray-300); + font-weight: 500; + color: var(--gray-900); + font-size: var(--text-base); + cursor: pointer; +} + +.result-row:hover { + color: inherit; + text-decoration: none; +} + +.search-modal .modal-dialog { + max-width: 70%; + margin: 15% auto !important; +} + +.search-modal .modal-body { + padding: 0 !important; + margin: 0 !important; +} diff --git a/lms/templates/search_course/search_course.html b/lms/templates/search_course/search_course.html index 2cc370a3..e6d2ac46 100644 --- a/lms/templates/search_course/search_course.html +++ b/lms/templates/search_course/search_course.html @@ -2,22 +2,13 @@ {% set portal_course_creation = frappe.db.get_single_value("LMS Settings", "portal_course_creation") %} - -