Skip to content

Commit

Permalink
Minor style improvements for downloads section
Browse files Browse the repository at this point in the history
  • Loading branch information
nukeop committed May 3, 2024
1 parent ac8bdac commit 96b040f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
display: flex;
flex-flow: row;
justify-content: space-between;
margin: 0 !important;

.label, .directory {
.label,
.directory {
display: flex;
align-items: center;
}
Expand Down
12 changes: 6 additions & 6 deletions packages/app/app/components/Downloads/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,22 @@ const Downloads: React.FC<DownloadsProps> = ({

return (
<div className={styles.downloads_container}>
<DownloadsHeader
directory={downloadsDir}
setStringOption={setStringOption}
/>
{downloads.length === 0 && <EmptyState />}
{downloads.length > 0 && (
<React.Fragment>
<>
<Header>{t('header')}</Header>
<DownloadsHeader
directory={downloadsDir}
setStringOption={setStringOption}
/>
<DownloadsList
items={downloads}
clearFinishedTracks={clearFinishedTracks}
resumeDownload={resumeDownload}
pauseDownload={pauseDownload}
removeDownload={removeDownload}
/>
</React.Fragment>
</>
)}
</div>
);
Expand Down

0 comments on commit 96b040f

Please sign in to comment.