Commit 014ac499 authored by Florian Pagnoux's avatar Florian Pagnoux
Browse files

Minor style adjustment

parent 7b1619ec
......@@ -43,7 +43,7 @@ const XSLXLink = ({path, parameter, table}) => {
const BreadCrum = ({parents, lang}) => {
const i18nBasename = (lang == 'fr') ? basename : (basenameEnSections || basename)
const i18nRoot = (lang == 'fr') ? basename : (basenameEnSections || basename + '/en')
return <p>
return <p className="breadcrum">
<a href={i18nRoot + '/'}>{msg.baremesIPP[lang]}</a>
{parents.map(({path, title}, index) => {
if (index === 0) { // Left-most parent is the primary section, add a link
......@@ -62,10 +62,12 @@ const TablePage = (props) => {
const path = props.router.asPath
const table = parameterTable(parameter, lang)
return <Layout fullWidth={ true }>
<BreadCrum parents={parents} lang={lang}/>
{! isProd && <LangToggle lang={lang} target={basename + props.router.query.translationPage}/>}
<BreadCrum parents={parents} lang={lang}/>
<div className="table-exports-links">
<CSVLink path={path} parameter={parameter} table={table}/> <XSLXLink path={path} parameter={parameter} table={table}/>
</div>
<h1 className="box"><span>{getTitle(parameter, lang)}</span></h1>
<CSVLink path={path} parameter={parameter} table={table}/> <XSLXLink path={path} parameter={parameter} table={table}/>
<Table table={table}/>
<p className="table-doc">{parameter.documentation}</p>
</Layout>
......
......@@ -34,3 +34,11 @@ thead {
white-space: pre-line;
margin-top: 1em;
}
.breadcrum {
margin-bottom: 1em;
}
.table-exports-links {
float: right;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment