sort of fix table view

This commit is contained in:
Georges-Antoine Assi
2025-01-08 10:43:27 -05:00
parent 547113b50a
commit 579f3ff97c
10 changed files with 37 additions and 21 deletions

View File

@@ -19,11 +19,6 @@ storeLanguage.setLanguage(selectedLanguage.value);
</script>
<template>
<v-app>
<div class="d-flex flex-row flex-grow-1" style="max-height: 100dvh">
<main-app-bar />
<div class="flex-grow-1 overflow-y-scroll">
<router-view />
</div>
</div>
<router-view />
</v-app>
</template>

View File

@@ -27,7 +27,7 @@ const { currentCollection } = storeToRefs(romsStore);
density="compact"
mode="shift"
class="rounded mx-2 mt-2 mb-1 position-sticky"
style="width: unset"
style="width: unset; top: 0.5rem"
>
<template #prepend>
<r-avatar

View File

@@ -23,13 +23,12 @@ const { activePlatformInfoDrawer } = storeToRefs(navigationStore);
<template>
<v-app-bar
top
id="gallery-app-bar"
elevation="0"
density="compact"
mode="shift"
class="rounded mx-2 mt-2 mb-1 position-sticky"
style="width: unset"
style="width: unset; top: 0.5rem"
>
<platform-icon
v-if="currentPlatform"

View File

@@ -76,7 +76,10 @@ onMounted(() => {
floating
location="bottom"
v-model="activeFirmwareDrawer"
class="bg-surface border-0 rounded ma-2 pa-1"
:class="{
'my-2': activeFirmwareDrawer,
}"
class="bg-surface border-0 rounded mx-2 pa-1"
:scrim="false"
>
<v-data-table

View File

@@ -22,7 +22,7 @@ const { xs } = useDisplay();
density="compact"
mode="shift"
class="rounded mx-2 mt-2 mb-1 position-sticky"
style="width: unset"
style="width: unset; top: 0.5rem"
>
<filter-btn />
<template v-if="!xs">

View File

@@ -140,7 +140,20 @@ onMounted(() => {
:items-per-page="itemsPerPage"
:items-per-page-options="PER_PAGE_OPTIONS"
:item-value="(item: SimpleRom) => item"
:items="filteredRoms"
:items="[
...filteredRoms,
...filteredRoms,
...filteredRoms,
...filteredRoms,
...filteredRoms,
...filteredRoms,
...filteredRoms,
...filteredRoms,
...filteredRoms,
...filteredRoms,
...filteredRoms,
...filteredRoms,
]"
:headers="HEADERS"
v-model="selectedRomIDs"
v-model:page="page"
@@ -149,6 +162,7 @@ onMounted(() => {
fixed-footer
hide-default-footer
hover
class="mx-2 my-1"
>
<template #header.data-table-select>
<v-checkbox-btn
@@ -260,8 +274,7 @@ onMounted(() => {
</template>
<template #bottom>
<v-divider />
<div>
<tfoot class="bg-surface border-t-sm position-sticky bottom-0">
<v-row no-gutters class="pa-1 align-center justify-center">
<v-col cols="8" sm="9" md="10" class="px-3">
<v-pagination
@@ -284,7 +297,7 @@ onMounted(() => {
/>
</v-col>
</v-row>
</div>
</tfoot>
</template>
</v-data-table>
</template>

View File

@@ -5,6 +5,7 @@ import RemoveRomsFromCollectionDialog from "@/components/common/Collection/Dialo
import DeleteRomDialog from "@/components/common/Game/Dialog/DeleteRom.vue";
import EditRomDialog from "@/components/common/Game/Dialog/EditRom.vue";
import MatchRomDialog from "@/components/common/Game/Dialog/MatchRom.vue";
import MainAppBar from "@/components/common/Navigation/MainAppBar.vue";
import NewVersionDialog from "@/components/common/NewVersionDialog.vue";
import Notification from "@/components/common/Notifications/Notification.vue";
import UploadProgress from "@/components/common/Notifications/UploadProgress.vue";
@@ -57,8 +58,13 @@ onBeforeMount(async () => {
</script>
<template>
<notification />
<router-view />
<div class="d-flex flex-row flex-grow-1" style="max-height: 100dvh">
<notification />
<main-app-bar />
<div class="flex-grow-1 overflow-y-scroll">
<router-view />
</div>
</div>
<match-rom-dialog />
<edit-rom-dialog />

View File

@@ -334,7 +334,7 @@ onBeforeUnmount(() => {
</v-row>
<!-- Gallery list view -->
<v-row v-show="currentView == 2" class="h-100" no-gutters>
<v-row v-show="currentView == 2" no-gutters>
<game-data-table class="fill-height" />
</v-row>
<fab-overlay />

View File

@@ -355,8 +355,8 @@ onBeforeUnmount(() => {
</v-row>
<!-- Gallery list view -->
<v-row v-show="currentView == 2" class="h-100" no-gutters>
<game-data-table class="h-100" />
<v-row v-show="currentView == 2" no-gutters>
<game-data-table class="fill-height" />
</v-row>
<fab-overlay />
</template>

View File

@@ -230,7 +230,7 @@ onBeforeUnmount(() => {
</v-row>
<!-- Gallery list view -->
<v-row v-show="currentView == 2" class="h-100" no-gutters>
<v-row v-show="currentView == 2" no-gutters>
<game-data-table class="fill-height" />
</v-row>
<fab-overlay />