Skip to content

Commit 4e5bd80

Browse files
committed
[ROMM-2291] Force titles to display on game cards
1 parent d8d54b1 commit 4e5bd80

4 files changed

Lines changed: 21 additions & 5 deletions

File tree

frontend/src/components/Settings/LibraryManagement/MissingGames/MissingGames.vue

Whitespace-only changes.

frontend/src/components/Settings/UserInterface/Interface.vue

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const regionsRef = useLocalStorage("settings.showRegions", true);
4444
const languagesRef = useLocalStorage("settings.showLanguages", true);
4545
const statusRef = useLocalStorage("settings.showStatus", true);
4646
const actionBarRef = useLocalStorage("settings.showActionBar", false);
47+
const gameTitleRef = useLocalStorage("settings.showGameTitle", false);
4748
const enable3DEffectRef = useLocalStorage("settings.enable3DEffect", false);
4849
4950
const homeOptions = computed(() => [
@@ -158,6 +159,14 @@ const galleryOptions = computed(() => [
158159
model: enable3DEffectRef,
159160
modelTrigger: toggle3DEffect,
160161
},
162+
{
163+
title: t("settings.show-game-titles"),
164+
description: t("settings.show-game-titles-desc"),
165+
iconEnabled: "mdi-text-box-outline",
166+
iconDisabled: "mdi-text-box-outline",
167+
model: gameTitleRef,
168+
modelTrigger: toggleShowGameTitles,
169+
},
161170
]);
162171
163172
const setPlatformDrawerGroupBy = (value: string) => {
@@ -214,6 +223,9 @@ const toggleActionBar = (value: boolean) => {
214223
const toggle3DEffect = (value: boolean) => {
215224
enable3DEffectRef.value = value;
216225
};
226+
const toggleShowGameTitles = (value: boolean) => {
227+
gameTitleRef.value = value;
228+
};
217229
</script>
218230
<template>
219231
<r-section

frontend/src/components/common/Game/Card/Base.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ const fallbackCoverImage = computed(() =>
120120
const activeMenu = ref(false);
121121
122122
const showActionBarAlways = useLocalStorage("settings.showActionBar", false);
123+
const showGameTitleAlways = useLocalStorage("settings.showGameTitle", false);
123124
const showSiblings = useLocalStorage("settings.showSiblings", true);
124125
125126
const hasNotes = computed(() => {
@@ -251,6 +252,7 @@ onBeforeUnmount(() => {
251252
<div
252253
v-if="
253254
isHovering ||
255+
showGameTitleAlways ||
254256
(romsStore.isSimpleRom(rom) && !rom.path_cover_large) ||
255257
(!romsStore.isSimpleRom(rom) &&
256258
!rom.igdb_url_cover &&

frontend/src/views/Settings/LibraryManagement.vue

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,15 +182,16 @@ onUnmounted(() => {
182182
slider-color="secondary"
183183
selected-class="bg-toplayer"
184184
>
185-
<v-tab prepend-icon="mdi-cog" class="rounded" value="config"
186-
>Config</v-tab
187-
>
185+
<v-tab prepend-icon="mdi-cog" class="rounded" value="config">
186+
Config
187+
</v-tab>
188188
<v-tab
189189
prepend-icon="mdi-folder-question"
190190
class="rounded"
191191
value="missing"
192-
>Missing games</v-tab
193192
>
193+
Missing games
194+
</v-tab>
194195
</v-tabs>
195196
</v-col>
196197
<v-col>
@@ -266,8 +267,9 @@ onUnmounted(() => {
266267
class="text-romm-red bg-toplayer"
267268
variant="flat"
268269
@click="cleanupAll"
269-
>Clean up all</v-btn
270270
>
271+
Clean up all
272+
</v-btn>
271273
</v-col>
272274
</v-row>
273275
<game-table class="mx-2 mt-2" show-platform-icon />

0 commit comments

Comments
 (0)