Skip to content

Commit

Permalink
Merge pull request #50 from bento-platform/changes-5
Browse files Browse the repository at this point in the history
Fixed bug: About section didnt have maxWidth css prop
  • Loading branch information
davidlougheed authored Dec 20, 2022
2 parents 88e3d73 + 4a3d465 commit 951c2f6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bento_public",
"version": "0.8.1",
"version": "0.8.2",
"description": "A publicly accessible portal for clinical datasets, where users are able to see high-level statistics of the data available through predefined variables of interest and search the data using limited variables at a time. This portal allows users to gain a generic understanding of the data available (secure and firewalled) without the need to access it directly. Initially, this portal facilitates the search in English language only, but the French language will be added at a later time.",
"main": "index.js",
"scripts": {
Expand Down
12 changes: 7 additions & 5 deletions src/js/components/Overview/PublicOverview.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,19 @@ const PublicOverview = () => {

const [drawerVisible, setDrawerVisible] = useState(false);

const { isFetchingAbout, aboutHTML } = useSelector(state => state.content)
const { isFetchingAbout, aboutHTML } = useSelector((state) => state.content);

return (
<>
<div className="container">
<Row justify="center">
<Col>
<Card style={{ borderRadius: '11px' }}>
{isFetchingAbout
? <Skeleton title={false} paragraph={{rows: 2}} />
: <div dangerouslySetInnerHTML={{ __html: aboutHTML }} />}
<Card style={{ borderRadius: '11px', maxWidth: '1323px' }}>
{isFetchingAbout ? (
<Skeleton title={false} paragraph={{ rows: 2 }} />
) : (
<div dangerouslySetInnerHTML={{ __html: aboutHTML }} />
)}
</Card>
{sections.map(({ sectionTitle, charts }, i) => (
<div key={i} className="overview">
Expand Down

0 comments on commit 951c2f6

Please sign in to comment.