Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,27 @@ const config = {
content: 'width=device-width, initial-scale=1, viewport-fit=cover',
},
},
{
tagName: 'meta',
attributes: {
name: 'theme-color',
content: 'rgba(0, 0, 0, 0)',
},
},
{
tagName: 'meta',
attributes: {
name: 'apple-mobile-web-app-capable',
content: 'yes',
},
},
{
tagName: 'meta',
attributes: {
name: 'apple-mobile-web-app-status-bar-style',
content: 'black-translucent',
},
},
{
tagName: 'link',
attributes: {
Expand Down Expand Up @@ -207,6 +228,23 @@ const config = {
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
`,
},
{
tagName: 'script',
attributes: {
type: 'text/javascript',
},
innerHTML: `
(function() {
var isHomepage =
window.location.pathname === '/' ||
/^\\/push-chain-website\\/pr-preview\\/pr-\\d+\\/?$/.test(window.location.pathname);

if (isHomepage) {
document.body.classList.add('homepage-body');
}
})();
`,
},
{
tagName: 'script',
attributes: {
Expand Down
4 changes: 2 additions & 2 deletions src/components/BRB/BRBParallax.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ const Container = styled.div`

const BRBWrapper = styled.div`
width: 100%;
height: 100vh;
height: 100dvh;
@media ${device.mobileL} {
min-height: 100vh;
min-height: 100dvh;
}
`;

Expand Down
2 changes: 1 addition & 1 deletion src/components/Explainer/Explainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ const DesktopTOC = styled(ItemV)`

justify-content: flex-start;

max-height: 90vh;
max-height: 90dvh;
overflow-y: auto;
overflow-x: hidden; /* Prevent horizontal scrollbar */

Expand Down
Loading