Skip to content

Commit

Permalink
fix(files): Remove huge margin on bottom
Browse files Browse the repository at this point in the history
Instead make it relative to screen size.

Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux committed Aug 26, 2024
1 parent 0036881 commit 1742bf5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 5 additions & 2 deletions apps/files/src/components/FilesListTableFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ import Vue from 'vue'

import { useFilesStore } from '../store/files.ts'
import { usePathsStore } from '../store/paths.ts'
import { useRouteParameters } from '../composables/useRouteParameters.ts'

export default Vue.extend({
name: 'FilesListTableFooter',
Expand Down Expand Up @@ -97,9 +98,11 @@ export default Vue.extend({
setup() {
const pathsStore = usePathsStore()
const filesStore = useFilesStore()
const { directory } = useRouteParameters()
return {
filesStore,
pathsStore,
directory,
}
},

Expand All @@ -118,7 +121,7 @@ export default Vue.extend({
return
}

if (this.dir === '/') {
if (this.directory === '/') {
return this.filesStore.getRoot(this.currentView.id)
}
const fileId = this.pathsStore.getPath(this.currentView.id, this.dir)
Expand Down Expand Up @@ -160,7 +163,7 @@ export default Vue.extend({
<style scoped lang="scss">
// Scoped row
tr {
margin-bottom: 300px;
margin-bottom: max(25vh, var(--body-container-margin));
border-top: 1px solid var(--color-border);
// Prevent hover effect on the whole row
background-color: transparent !important;
Expand Down
5 changes: 0 additions & 5 deletions apps/files/src/components/FilesListVirtual.vue
Original file line number Diff line number Diff line change
Expand Up @@ -414,11 +414,6 @@ export default defineComponent({
top: 0;
}
// Table footer
.files-list__tfoot {
min-height: 300px;
}
tr {
position: relative;
display: flex;
Expand Down

0 comments on commit 1742bf5

Please sign in to comment.