Skip to content

Commit

Permalink
Merge pull request #2103 from Inist-CNRS/feats/increas-container-size
Browse files Browse the repository at this point in the history
Increas container size
  • Loading branch information
touv authored Jul 23, 2024
2 parents f993362 + d919a63 commit 1d9186a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 36 deletions.
33 changes: 0 additions & 33 deletions src/app/custom/themes/default/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,39 +17,6 @@ body {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.container,
.container-fluid {
width: 100%;
margin-right: auto;
margin-left: auto;
padding-left: 0.5rem;
padding-right: 0.5rem;
}

@media (min-width: 576px) {
.container {
max-width: 540px;
}
}

@media (min-width: 768px) {
.container {
max-width: 720px;
}
}

@media (min-width: 992px) {
.container {
max-width: 960px;
}
}

@media (min-width: 1200px) {
.container {
max-width: 1140px;
}
}

a {
color: #337ab7;
background-color: transparent;
Expand Down
2 changes: 1 addition & 1 deletion src/app/custom/themes/default/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<style><%= theme.cssVariable %></style>
</head>
<body>
<div id="root" class="container"></div>
<div id="root"></div>
<script>
window.__PRELOADED_STATE__ = <%- lodex.preload %>;
window.__TENANT__ = '<%= lodex.tenant %>';
Expand Down
5 changes: 3 additions & 2 deletions src/app/js/public/App.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import Container from '@mui/material/Container';

import stylesToClassname from '../lib/stylesToClassName';

Expand All @@ -13,9 +14,9 @@ const styles = stylesToClassname(
);

export const AppComponent = ({ children }) => (
<div className={styles.page}>
<Container className={styles.page} maxWidth="xl">
<div className="body">{children}</div>
</div>
</Container>
);

AppComponent.propTypes = {
Expand Down

0 comments on commit 1d9186a

Please sign in to comment.