Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1203 | Concept/Mapping details | removed ve…
Browse files Browse the repository at this point in the history
…rtical scrolls within sections | added horizontal scrolls for smaller screens
  • Loading branch information
snyaggarwal committed Mar 30, 2022
1 parent 8f63ac0 commit 3b6a654
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/common/SourceChildCollections.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const ACCORDIAN_HEADING_STYLES = {
fontWeight: 'bold',
}
const ACCORDIAN_DETAILS_STYLES = {
maxHeight: '300px', overflow: 'auto', width: '100%', padding: '0'
width: '100%', padding: '0', overflowX: 'auto'
}

const None = () => (<div style={{padding: '5px 15px', fontWeight: '300'}}>None</div>);
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/VersionList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const ACCORDIAN_HEADING_STYLES = {
fontWeight: 'bold',
}
const ACCORDIAN_DETAILS_STYLES = {
maxHeight: '300px', overflow: 'auto', display: 'inline-block', width: '100%', padding: '0'
overflowX: 'auto', display: 'inline-block', width: '100%', padding: '0'
}

const None = () => {
Expand Down
3 changes: 2 additions & 1 deletion src/components/concepts/ConceptHome.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ class ConceptHome extends React.Component {
const currentURL = this.getConceptURLFromPath()
const isVersionedObject = this.isVersionedObject()
const hasError = notFound || accessDenied || permissionDenied;
const detailsMargin = this.getContentMarginTop()
const conceptDetails = (
<div style={isLoading ? {textAlign: 'center', marginTop: '40px'} : {}}>
{ isLoading && <CircularProgress color='primary' /> }
Expand Down Expand Up @@ -275,7 +276,7 @@ class ConceptHome extends React.Component {
header={has(this.props, 'header') ? this.props.header : true}
/>
}
<div className='col-xs-12' style={{position: 'relative', marginTop: this.getContentMarginTop()}}>
<div className='col-xs-12' style={{position: 'relative', marginTop: detailsMargin, marginBottom: detailsMargin}}>
<ConceptHomeDetails
scoped={this.props.scoped}
singleColumn={this.props.singleColumn}
Expand Down
2 changes: 1 addition & 1 deletion src/components/concepts/ConceptHomeDetails.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const ACCORDIAN_HEADING_STYLES = {
fontWeight: 'bold',
}
const ACCORDIAN_DETAILS_STYLES = {
maxHeight: '300px', overflow: 'auto', display: 'inline-block', width: '100%', padding: '0'
overflowX: 'auto', width: '100%', padding: '0'
}

const ConceptHomeDetails = ({ concept, isLoadingMappings, isLoadingCollections, source, childConcepts, parentConcepts, isLoadingChildren, isLoadingParents, singleColumn, versions, scoped }) => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/concepts/HomeLocales.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const ACCORDIAN_HEADING_STYLES = {
fontWeight: 'bold',
}
const ACCORDIAN_DETAILS_STYLES = {
maxHeight: '300px', overflow: 'auto', width: '100%', padding: '0'
width: '100%', padding: '0', overflowX: 'auto'
}

const None = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/concepts/HomeMappings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const ACCORDIAN_HEADING_STYLES = {
fontWeight: 'bold',
}
const ACCORDIAN_DETAILS_STYLES = {
width: '100%', padding: '0'
width: '100%', padding: '0', overflowX: 'auto'
}

const None = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/mappings/MappingHomeDetails.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const ACCORDIAN_HEADING_STYLES = {
fontWeight: 'bold',
}
const ACCORDIAN_DETAILS_STYLES = {
maxHeight: '300px', overflow: 'auto', display: 'inline-block', width: '100%', padding: '0'
overflowX: 'auto', width: '100%', padding: '0'
}

const MappingHomeDetails = ({ mapping, singleColumn, versions, isLoadingCollections, scoped }) => {
Expand Down

0 comments on commit 3b6a654

Please sign in to comment.