@@ -50,6 +50,7 @@ import { defineComponent } from 'vue'
5050
5151import { useFilesStore } from ' ../store/files.ts'
5252import { usePathsStore } from ' ../store/paths.ts'
53+ import { useRouteParameters } from ' ../composables/useRouteParameters.ts'
5354
5455export default defineComponent ({
5556 name: ' FilesListTableFooter' ,
@@ -84,27 +85,24 @@ export default defineComponent({
8485 setup() {
8586 const pathsStore = usePathsStore ()
8687 const filesStore = useFilesStore ()
88+ const { directory } = useRouteParameters ()
8789 return {
8890 filesStore ,
8991 pathsStore ,
92+ directory ,
9093 }
9194 },
9295
9396 computed: {
94- dir() {
95- // Remove any trailing slash but leave root slash
96- return (this .$route ?.query ?.dir || ' /' ).replace (/ ^ (. + )\/ $ / , ' $1' )
97- },
98-
9997 currentFolder() {
10098 if (! this .currentView ?.id ) {
10199 return
102100 }
103101
104- if (this .dir === ' /' ) {
102+ if (this .directory === ' /' ) {
105103 return this .filesStore .getRoot (this .currentView .id )
106104 }
107- const fileId = this .pathsStore .getPath (this .currentView .id , this .dir )!
105+ const fileId = this .pathsStore .getPath (this .currentView .id , this .directory )!
108106 return this .filesStore .getNode (fileId )
109107 },
110108
@@ -143,7 +141,7 @@ export default defineComponent({
143141<style scoped lang="scss">
144142// Scoped row
145143tr {
146- margin-bottom : 300 px ;
144+ margin-bottom : max ( 25 vh , var ( --body-container-margin )) ;
147145 border-top : 1px solid var (--color-border );
148146 // Prevent hover effect on the whole row
149147 background-color : transparent !important ;
0 commit comments