Skip to content

Commit

Permalink
refactor: refactoring tablet view
Browse files Browse the repository at this point in the history
  • Loading branch information
PKulkoRaccoonGang committed Sep 15, 2023
1 parent 9242628 commit 7e5c7e1
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions www/src/templates/component-page-template.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import PropTypes from 'prop-types';
import { graphql, Link } from 'gatsby';
import { MDXProvider } from '@mdx-js/react';
import { MDXRenderer } from 'gatsby-plugin-mdx';
import classNames from 'classnames';
import {
Container,
Alert,
Expand Down Expand Up @@ -142,15 +143,17 @@ export default function PageTemplate({
</Alert>
)}
<Stack
className="justify-content-between"
direction={isMobile ? 'vertical' : 'horizontal'}
className={classNames('justify-content-between', {
'flex-column-reverse align-items-start': isMobile,
})}
direction="horizontal"
>
<h1 className={isMobile ? 'mb-2' : 'mb-4'}>
<h1>
{mdx.frontmatter.title}
</h1>
<Stack
className="mb-4"
direction={isMobile ? 'vertical' : 'horizontal'}
className={classNames('mb-2', { 'justify-content-end': isMobile })}
direction="horizontal"
gap={2}
>
<PageEditBtn githubEditPath={githubEditPath} />
Expand Down

0 comments on commit 7e5c7e1

Please sign in to comment.