mirror of
https://github.com/rommapp/romm.git
synced 2026-12-04 12:52:19 +01:00
sort of fix table view
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 />
|
||||
|
||||
@@ -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 />
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user