Client: create indexColumnSize getter

This commit is contained in:
Dmitry Sychugov 2024-06-21 19:40:37 +05:00
parent e4dbd0df7a
commit 4dfce3d3d6

View File

@ -3992,6 +3992,15 @@ class FilesStore {
return this.filter.total;
}
get indexColumnSize() {
if (!this.indexingStore.isIndexing) return;
let minWidth = 36;
const lastFile = this.filesList[this.filesList.length - 1];
return minWidth + lastFile?.order?.length * 3;
}
get hasMoreFiles() {
const { isRoomsFolder, isArchiveFolder } = this.treeFoldersStore;