Skip to content

Commit

Permalink
updated styles for title text
Browse files Browse the repository at this point in the history
  • Loading branch information
akshatbhargava123 committed Jul 29, 2019
1 parent 25d8aea commit ec06ba7
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/RootContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,21 @@ class RootContainer extends React.Component {
{id}
</div>
{this.state.selectedId === i && (
<div style={{ display: 'flex', justifyContent: 'center' }}>
<div className="details-panel">
{this.state.detailsLoading ? (
<Loading />
) : (
<h3>{this.state.focusedIdTitle}</h3>
<>
<h3>{this.state.focusedIdTitle}</h3>
<a
href={`https://www.rcsb.org/structure/${id}`}
rel="noopener noreferrer"
target="_blank"
className="title-text"
>
open RCSB page
</a>
</>
)}
</div>
)}
Expand Down
13 changes: 13 additions & 0 deletions src/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

font-family: sans-serif;

.details-panel {
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
border: 1px solid lightgrey;
padding: 10px;
.title-text {
font-size: 14px;
font-weight: 300;
}
}

.error {
display: flex;
justify-content: center;
Expand Down

0 comments on commit ec06ba7

Please sign in to comment.