Skip to content

Commit

Permalink
little ui tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
zurdi15 committed Jun 28, 2024
1 parent bfb8ab3 commit 08ff388
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
1 change: 0 additions & 1 deletion frontend/src/components/common/Game/Card/Flags.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
>
Expand Down
7 changes: 6 additions & 1 deletion frontend/src/components/common/Game/Dialog/MatchRom.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -266,18 +268,21 @@ 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
/>
</v-col>
<v-col cols="4" sm="3">
<v-select
:disabled="searching"
label="by"
class="bg-terciary"
:items="['ID', 'Name']"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ onBeforeUnmount(() => {
@click:clear="searchTerm = ''"
class="bg-terciary"
v-model="searchTerm"
:disabled="searching"
label="Search"
hide-details
clearable
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/components/common/Game/Dialog/SearchRom.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ onBeforeUnmount(() => {
@keyup.enter="searchRoms"
@click:clear="searchRoms"
v-model="searchValue"
:disabled="searching"
label="Search"
hide-details
class="bg-terciary"
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/common/Game/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 08ff388

Please sign in to comment.