{/if}
<button
onclick={() => downloadFile(file.uuid_filename)}
- class="p-2 fileBtn d-flex flex-column flex-fill"
+ class="p-2 fileBtn d-flex flex-row flex-fill justify-content-center"
>
- <div class="d-flex flex-row align-items-center">
- <div class="filename filenameWeight">{file.filename}</div>
+ <div>
+ <span class="filename filenameWeight">{file.filename}</span>
<span class="filesize">({formatBytes(file.size)})</span>
</div>
{#if file.downloadProgress >= 0}
background-color: rgba(117, 117, 117, 0.45);
border: 0px solid #ececec77;
border-radius: 5px;
+ width: 100%;
}
.options-menu {
<div class="files d-flex flex-column glass">
<button
- class="btn btn-secondary upload-btn {filesOfDay?.length > 0 ? 'mb-2' : ''}"
+ class="btn btn-secondary upload-btn {filesOfDay?.length > 0 ? '' : ''}"
id="uploadBtn"
onclick={triggerFileInput}
ondragenter={(e) => {
}}><Fa icon={faCloudArrowUp} class="me-2" id="uploadIcon" />{$t('files.upload')}</button
>
<input type="file" id="fileInput" multiple style="display: none;" onchange={onFileChange} />
+ {#if filesOfDay?.length > 0}
+ <div transition:slide><div class="pt-3"></div></div>
+ {/if}
<div class="fileScroll">
<FileList