@@ -64,6 +64,7 @@ import Vue from 'vue'
6464
6565import { useFilesStore } from ' ../store/files.ts'
6666import { usePathsStore } from ' ../store/paths.ts'
67+ import { useRouteParameters } from ' ../composables/useRouteParameters.ts'
6768
6869export default Vue .extend ({
6970 name: ' FilesListTableFooter' ,
@@ -97,9 +98,12 @@ export default Vue.extend({
9798 setup() {
9899 const pathsStore = usePathsStore ()
99100 const filesStore = useFilesStore ()
101+ const { directory } = useRouteParameters ()
102+
100103 return {
101104 filesStore ,
102105 pathsStore ,
106+ directory ,
103107 }
104108 },
105109
@@ -108,20 +112,15 @@ export default Vue.extend({
108112 return this .$navigation .active
109113 },
110114
111- dir() {
112- // Remove any trailing slash but leave root slash
113- return (this .$route ?.query ?.dir || ' /' ).replace (/ ^ (. + )\/ $ / , ' $1' )
114- },
115-
116115 currentFolder() {
117116 if (! this .currentView ?.id ) {
118117 return
119118 }
120119
121- if (this .dir === ' /' ) {
120+ if (this .directory === ' /' ) {
122121 return this .filesStore .getRoot (this .currentView .id )
123122 }
124- const fileId = this .pathsStore .getPath (this .currentView .id , this .dir )
123+ const fileId = this .pathsStore .getPath (this .currentView .id , this .directory )
125124 return this .filesStore .getNode (fileId )
126125 },
127126
@@ -160,7 +159,7 @@ export default Vue.extend({
160159<style scoped lang="scss">
161160// Scoped row
162161tr {
163- margin-bottom : 300 px ;
162+ margin-bottom : max ( 25 vh , var ( --body-container-margin )) ;
164163 border-top : 1px solid var (--color-border );
165164 // Prevent hover effect on the whole row
166165 background-color : transparent !important ;
0 commit comments