Skip to content

Commit 8786076

Browse files
author
fabienSvstr
committed
fix
1 parent d55952c commit 8786076

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

client/src/components/files/FileListDisplay.vue

+12-5
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@
1111
>
1212
<div
1313
class="scroll"
14-
ref="containerScroll"
14+
ref="containerScroll"
1515
@contextmenu="onContextMenu"
1616
>
17-
<ion-list class="list">
17+
<ion-list
18+
class="list files-container-list"
19+
:class="{ 'file-list-mobile': isSmallDisplay }"
20+
>
1821
<ion-list-header
1922
class="folder-list-header"
2023
lines="full"
@@ -47,7 +50,7 @@
4750
<div>
4851
<file-list-item
4952
v-for="folder in folders.getEntries()"
50-
ref="folderItemsRef"
53+
ref="folderItemsRef"
5154
:key="folder.id"
5255
:entry="folder"
5356
:show-checkbox="someSelected"
@@ -60,7 +63,7 @@
6063
/>
6164
<file-list-item
6265
v-for="file in files.getEntries()"
63-
ref="fileItemsRef"
66+
ref="fileItemsRef"
6467
:key="file.id"
6568
:entry="file"
6669
:show-checkbox="someSelected"
@@ -93,7 +96,7 @@ import { IonLabel, IonList, IonListHeader } from '@ionic/vue';
9396
import { computed, ref } from 'vue';
9497
import { MsCheckbox, useWindowSize } from 'megashark-lib';
9598

96-
const { isLargeDisplay } = useWindowSize();
99+
const { isLargeDisplay, isSmallDisplay } = useWindowSize();
97100
const props = defineProps<{
98101
operationsInProgress: Array<FileOperationProgress>;
99102
files: EntryCollection<FileModel>;
@@ -181,6 +184,10 @@ async function scrollToSelected(): Promise<void> {
181184
margin-bottom: 0;
182185
}
183186

187+
.file-list-mobile {
188+
padding-top: 1rem;
189+
}
190+
184191
.folder-list-header {
185192
&__label {
186193
padding: 0.75rem 1rem;

0 commit comments

Comments
 (0)