diff --git a/components/actors/actors.vue b/components/actors/actors.vue index 7a900a0..467b364 100644 --- a/components/actors/actors.vue +++ b/components/actors/actors.vue @@ -8,7 +8,7 @@ type="search" placeholder="Search actors" class="input search" - @keydown.enter="search" + @search="search" > .dialog-body { - padding: 1rem; width: 30rem; max-width: 100%; + box-sizing: border-box; + padding: 1rem; overflow-y: auto; } diff --git a/pages/search/+Page.vue b/pages/search/+Page.vue index 9675d67..1b0c7cb 100644 --- a/pages/search/+Page.vue +++ b/pages/search/+Page.vue @@ -83,7 +83,7 @@ Found {{ sceneTotal }} {{ sceneTotal > 1 ? 'scenes' : 'scene' }} Full scene results diff --git a/src/entities.js b/src/entities.js index c91e956..37681ed 100644 --- a/src/entities.js +++ b/src/entities.js @@ -49,7 +49,8 @@ export async function fetchEntities(options = {}) { .where((subBuilder) => { subBuilder .whereILike('entities.name', `%${options.query}%`) - .orWhereILike('entities.slug', `%${options.query}%`); + .orWhereILike('entities.slug', `%${options.query}%`) + .orWhereILike(knex.raw('array_to_string(entities.alias, \',\', \'*\')'), `%${options.query}%`); }) .whereNot('entities.type', 'info'); }); diff --git a/static b/static index 9b190cb..c3a287b 160000 --- a/static +++ b/static @@ -1 +1 @@ -Subproject commit 9b190cb9c7114b0bbb51b90672526022143bf33b +Subproject commit c3a287bfae05a7bb92d028c4036ec418b7efe5c5