diff --git a/webui/app/css/app.css b/webui/app/css/app.css index 8cc7b8ab3c..e767d844d1 100644 --- a/webui/app/css/app.css +++ b/webui/app/css/app.css @@ -1069,49 +1069,46 @@ a.navbar-brand { filter: none; } -.fileList .fileHeader { +.filelist .fileheader { padding: 0.5em 0; border-bottom: 1px solid #ddd; -} -.fileList .fileHeader *{ font-weight: bold; + margin-top: 0.5em, + margin-bottom: 0.5em } -.fileList .buttons { - padding: 0px; - overflow-x: auto; -} -.fileList .buttons > *:not(:first-child) { - margin-left: 5px; +.filelist .files { + max-height: 800px; /* about 20 single line files */ + overflow-y: auto; + overflow-x: hidden; } -.fileList .file { +.filelist .file { padding: 0.5em 0; word-wrap: break-word; } -.fileList .file .details { +.filelist .file .details { margin-left: 1em; overflow-x: auto; } -.fileList .file .details > div { +.filelist .file .details > div { margin-left: 1em; white-space: nowrap } -.fileList .file:nth-child(odd) { +.filelist .file:nth-child(odd) { background-color: #f4f4f4; } -.fileList .file:nth-child(even) { +.filelist .file:nth-child(even) { background-color: #fafafa; } -.fileList .file:hover { +.filelist .file:hover { background-color: #fff; } -.fileList .file .btn.remove { +.filelist .file .btn.remove { float: right; color: #F45D00; margin-right: 1em; - border-color: #eee; } -.fileList .file .btn.remove:hover { +.filelist .file .btn.remove:hover { color: red; } diff --git a/webui/src/components/editfiles.jsx b/webui/src/components/editfiles.jsx index 535cc35a25..2ae52f7522 100644 --- a/webui/src/components/editfiles.jsx +++ b/webui/src/components/editfiles.jsx @@ -200,7 +200,7 @@ const B2DropZone = React.createClass({ renderFiles: function() { return (
-
    +
    1. File Name
      Size
      @@ -253,7 +253,6 @@ const B2DropZone = React.createClass({ const B2SafeZone = React.createClass({ - getInitialState() { return { state: 'b2safe', @@ -500,7 +499,7 @@ export const EditFiles = React.createClass({ } return(
      -
      +
      { this.state.files.map(f => this.removeUploadFile(f)} />) } @@ -531,7 +530,7 @@ export const EditFiles = React.createClass({ } return(
      -
      +
      { this.props.files.map(f => this.removeRecordFile(f)} />) } @@ -587,7 +586,7 @@ export const FileUploadHeader = React.createClass({ mixins: [React.addons.PureRenderMixin], render() { return ( -
      +
      Name
      Size
      @@ -642,21 +641,19 @@ const FileUploadRow = React.createClass({ {file.name}
      {humanSize(file.size)}
      - { this.props.remove ? + { this.props.remove &&
      -
      : false - } +
      }
      - { this.state.remove ? + { this.state.remove && this.setState({remove:false})} /> - : false } - { file.progress ? this.renderProgress(file) : false } - { file.error ? this.renderError(file) : false } + cancel={()=>this.setState({remove:false})} /> } + { file.progress && this.renderProgress(file) } + { file.error && this.renderError(file) }
      ); }, @@ -666,10 +663,10 @@ export const FileRecordHeader = React.createClass({ mixins: [React.addons.PureRenderMixin], render() { return ( -
      +
      Name
      -
      Size
      -
      {/*Actions*/}
      +
      Size
      +
      {/*Actions*/}
      ); } @@ -715,7 +712,7 @@ export const FileRecordRow = React.createClass({ style={{fontSize:10}} aria-hidden="true"/> : null }
      -
      this.setState({open:!this.state.open})}>{ +
      this.setState({open:!this.state.open})}>{ file.b2safe ? "-" : humanSize(file.size) }
      -
      +
      +
      { this.props.b2noteWidget } { !file.checksum ? false : } { !this.props.remove ? false : - } +
      - { allowDetails && this.state.open ? + { allowDetails && this.state.open &&
      - { file.checksum ? + { file.checksum &&
      - Checksum: - -
      - : false } - { file.ePIC_PID ? + Checksum: +
      } + { file.ePIC_PID &&
      PID: -
      - : false } -
      : false } +
      } +
      } - { this.props.remove && this.state.remove ? + { this.props.remove && this.state.remove && this.setState({remove:false})} /> - : false } + cancel={()=>this.setState({remove:false})} /> }
      ); }, diff --git a/webui/src/components/newrecord.jsx b/webui/src/components/newrecord.jsx index 95c9a87b4e..10caee0694 100644 --- a/webui/src/components/newrecord.jsx +++ b/webui/src/components/newrecord.jsx @@ -137,7 +137,7 @@ export const NewRecordRoute = React.createClass({
-
+

You can also update the data in an existing record by creating a new version of that record. diff --git a/webui/src/components/record.jsx b/webui/src/components/record.jsx index cdde95b324..314cc9a496 100644 --- a/webui/src/components/record.jsx +++ b/webui/src/components/record.jsx @@ -100,7 +100,7 @@ const B2NoteWidget = React.createClass({ } return ( -

+ @@ -367,9 +367,11 @@ const Record = React.createClass({ return } fileComponent = -
+
+
{ files.map(fileRecordRowFn) } +
; } return ( diff --git a/webui/src/data/misc.js b/webui/src/data/misc.js index e1f4510f8b..c49a146853 100644 --- a/webui/src/data/misc.js +++ b/webui/src/data/misc.js @@ -42,15 +42,15 @@ export function humanSize(sz) { let K = 1000, M = K*K, G = K*M, T = K*G; if (sz < K) { - return [sz,'B ']; + return [sz,' B']; } else if (sz < M) { - return [(sz/K).toFixed(2), 'KB']; + return [(sz/K).toFixed(2), ' KB']; } else if (sz < G) { - return [(sz/M).toFixed(2), 'MB']; + return [(sz/M).toFixed(2), ' MB']; } else if (sz < T) { - return [(sz/G).toFixed(2), 'GB']; + return [(sz/G).toFixed(2), ' GB']; } else { - return [(sz/T).toFixed(2), 'TB']; + return [(sz/T).toFixed(2), ' TB']; } }