Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Commit

Permalink
fix: When downloading a dat, ensure Download button is visible.
Browse files Browse the repository at this point in the history
  • Loading branch information
okdistribute committed Feb 18, 2020
1 parent b2e8222 commit 4a573ed
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
To run _Dat Desktop_ in development mode:

```sh
node --version # v8.12.0
node --version # v12.4.0
npm install # install dependencies
npm start # start the application
```
Expand Down
13 changes: 8 additions & 5 deletions app/components/inspect.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ const Label = styled.div`
`

const Column = styled.div`
width: 100%;
overflow: hidden;
padding: 0.25rem;
`
Expand Down Expand Up @@ -81,7 +80,7 @@ const Inspect = ({
</div>
<h2 className='f5 normal truncate pr3 w-90'>{title}</h2>
</DetailHeader>
<div className='flex-auto pa3 pl5 bg-neutral-04 overflow-y-auto'>
<div className='flex-auto pa3 bg-neutral-04 overflow-y-auto'>
<Row label='Link:' data-test='key'>
{toStr(dat.key)}
</Row>
Expand All @@ -100,15 +99,20 @@ const Inspect = ({
<Row label='Download to:' className='flex bg-white' data-test='path'>
<pre
className='flex-auto f7 f6-l'
style={{ overflow: 'hidden', textOverflow: 'ellipsis' }}
style={{ maxWidth: '200px', overflow: 'hidden', textOverflow: 'ellipsis' }}
>
{dat.path}
</pre>
<TextButton onClick={() => changeDownloadPath(dat.key)}>
CHANGE...
</TextButton>
</Row>
<Row label='Files:' style={{ padding: 0 }}>
<Row label='Files:' style={{
padding: 0,
height: '100%',
maxHeight: '200px',
overflow: 'scroll'
}}>
<FileList
dat={dat}
fallback={<div className='f7 f6-l pa2'>N/A</div>}
Expand All @@ -126,7 +130,6 @@ const Inspect = ({
)}
{screen === SCREEN.DOWNLOAD && (
<DetailFooter className='pa3 flex items-center justify-between bg-white'>
<p className='truncate'>Download this Dat now?</p>
<div className='flex ml2'>
<GreenButton
onClick={() => {
Expand Down

0 comments on commit 4a573ed

Please sign in to comment.