Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions modules/candidate_profile/jsx/CandidateInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,11 @@ class CandidateInfo extends Component {
const renderTerm = (label, value, info) => {
const cardStyle = {
width: info.width || '6em',
padding: '1em',
marginLeft: '1ex',
marginRight: '1ex',
padding: '1rem 0',
marginLeft: '0.5rem',
marginRight: '0.5rem',
wordBreak: 'break-word',
flexGrow: 1,
};
let valueStyle = {};
if (info.valueWhitespace) {
Expand Down
74 changes: 38 additions & 36 deletions modules/instruments/jsx/VisitInstrumentList.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,16 @@ class VisitInstrumentList extends Component {
};
flexcontainer.justifyContent = 'flex-start';

let center = {
let titleText = {
display: 'flex',
width: '12%',
height: '100%',
width: '100%',
alignItems: 'center',
justifyContent: 'center',
textAlign: 'left',
wordBreak: 'break-word',
padding: '1rem',
};

const termstyle = {paddingLeft: '2em', paddingRight: '2em'};
const termstyle = {padding: '1rem 1.5em', flexGrow: 1};

let instruments = null;
if (!this.state.instruments) {
Expand Down Expand Up @@ -252,37 +253,38 @@ class VisitInstrumentList extends Component {
onMouseLeave={this.toggleHover}
>
<div style={flexcontainer}>
<div style={{background: bg, width: '1%', height: '100%'}}>
</div>
<div style={center}>
<h4 style={{width: '100%', padding: 0, margin: 0}}>
<a href={this.props.BaseURL
+ '/instrument_list/?candID='
+ this.props.Candidate.Meta.CandID
+ '&sessionID='
+ this.props.VisitMap[this.props.Visit.Meta.Visit]}>
{this.props.Visit.Meta.Visit}
</a>
</h4>
</div>
<div>
<dl style={defliststyle}>
<div style={termstyle}>
<dt>Cohort</dt>
<dd>{this.props.Visit.Meta.Battery}</dd>
</div>
<div style={termstyle}>
<dt>Site</dt>
<dd>{this.props.Visit.Meta.Site}</dd>
</div>
{vdate}
{vage}
<div style={termstyle}>
<dt>Status</dt>
<dd>{vstatus}</dd>
</div>
</dl>
{instruments}
<div style={{background: bg, width: '1%', height: '100%'}}></div>
<div style={{width: '100%'}}>
<div style={titleText}>
<h4 style={{width: '100%', padding: 0, margin: 0}}>
<a href={this.props.BaseURL
+ '/instrument_list/?candID='
+ this.props.Candidate.Meta.CandID
+ '&sessionID='
+ this.props.VisitMap[this.props.Visit.Meta.Visit]}>
{this.props.Visit.Meta.Visit}
</a>
</h4>
</div>
<div>
<dl style={defliststyle}>
<div style={termstyle}>
<dt>Cohort</dt>
<dd>{this.props.Visit.Meta.Battery}</dd>
</div>
<div style={termstyle}>
<dt>Site</dt>
<dd>{this.props.Visit.Meta.Site}</dd>
</div>
{vdate}
{vage}
<div style={termstyle}>
<dt>Status</dt>
<dd>{vstatus}</dd>
</div>
</dl>
{instruments}
</div>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion modules/media/jsx/CandidateMediaWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function CandidateMediaWidget(props) {
for (let i = 0; i < props.Files.length; i++) {
const file = props.Files[i];
files.push(
<a className="list-group-item" key={i}
<a className="list-group-item" style={{wordBreak: 'break-word'}} key={i}
href={props.BaseURL
+ '/media/files/'
+ encodeURIComponent(file.Filename)}>
Expand Down
Loading