mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 10:01:00 +01:00
little ui tweaks
This commit is contained in:
@@ -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"
|
||||
>
|
||||
|
||||
@@ -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']"
|
||||
|
||||
@@ -151,6 +151,7 @@ onBeforeUnmount(() => {
|
||||
@click:clear="searchTerm = ''"
|
||||
class="bg-terciary"
|
||||
v-model="searchTerm"
|
||||
:disabled="searching"
|
||||
label="Search"
|
||||
hide-details
|
||||
clearable
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user