diff --git a/lib/osf-components/addon/components/file-browser/file-item/styles.scss b/lib/osf-components/addon/components/file-browser/file-item/styles.scss index 6d6012752f1..538af8b707d 100644 --- a/lib/osf-components/addon/components/file-browser/file-item/styles.scss +++ b/lib/osf-components/addon/components/file-browser/file-item/styles.scss @@ -68,7 +68,7 @@ .FileList__item__options { display: flex; align-items: center; - flex: 1; + padding-right: 2vw; } .FileList__item__name { diff --git a/lib/osf-components/addon/components/file-browser/file-item/template.hbs b/lib/osf-components/addon/components/file-browser/file-item/template.hbs index 6aa6214dc83..714d7e55094 100644 --- a/lib/osf-components/addon/components/file-browser/file-item/template.hbs +++ b/lib/osf-components/addon/components/file-browser/file-item/template.hbs @@ -57,7 +57,9 @@ data-test-file-list-download-count local-class='FileList__item__download_count' > - {{t 'osf-components.file-browser.download_count' count=@item.fileModel.extra.downloads}} + {{#if (has-key @item.fileModel.extra 'downloads')}} + {{t 'osf-components.file-browser.download_count' count=@item.fileModel.extra.downloads}} + {{/if}}