little ui tweaks

This commit is contained in:
Zurdi
2024-06-28 18:38:51 +02:00
parent bfb8ab371b
commit 08ff388edf
5 changed files with 10 additions and 4 deletions

View File

@@ -41,7 +41,6 @@ const showSiblings = isNull(localStorage.getItem("settings.showSiblings"))
</v-chip>
<v-chip
v-if="rom.siblings && rom.siblings.length > 0 && showSiblings"
:title="`${rom.siblings.length + 1} versions`"
class="translucent-dark mr-1 mt-1"
density="compact"
>

View File

@@ -39,7 +39,9 @@ emitter?.on("showMatchRomDialog", (romToSearch) => {
rom.value = romToSearch;
searchTerm.value = romToSearch.name || romToSearch.file_name_no_tags || "";
show.value = true;
searchRom();
if (rom.value.igdb_id || rom.value.moby_id) {
searchRom();
}
});
// Functions
@@ -266,11 +268,13 @@ onBeforeUnmount(() => {
<v-row class="align-center" no-gutters>
<v-col cols="6" sm="8">
<v-text-field
autofocus
id="search-text-field"
@keyup.enter="searchRom()"
@click:clear="searchTerm = ''"
class="bg-terciary"
v-model="searchTerm"
:disabled="searching"
label="Search"
hide-details
clearable
@@ -278,6 +282,7 @@ onBeforeUnmount(() => {
</v-col>
<v-col cols="4" sm="3">
<v-select
:disabled="searching"
label="by"
class="bg-terciary"
:items="['ID', 'Name']"

View File

@@ -151,6 +151,7 @@ onBeforeUnmount(() => {
@click:clear="searchTerm = ''"
class="bg-terciary"
v-model="searchTerm"
:disabled="searching"
label="Search"
hide-details
clearable

View File

@@ -117,6 +117,7 @@ onBeforeUnmount(() => {
@keyup.enter="searchRoms"
@click:clear="searchRoms"
v-model="searchValue"
:disabled="searching"
label="Search"
hide-details
class="bg-terciary"
@@ -128,7 +129,7 @@ onBeforeUnmount(() => {
label="Platform"
class="bg-terciary"
item-title="platform_name"
:disabled="platforms.length == 0"
:disabled="platforms.length == 0 || searching"
hide-details
clearable
single-line

View File

@@ -144,7 +144,7 @@ onMounted(() => {
class="translucent-dark ml-2"
size="x-small"
>
<span class="text-caption">+{{ item.siblings.length + 1 }}</span>
<span class="text-caption">+{{ item.siblings.length }}</span>
</v-chip>
</template>
</v-list-item>