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 e66588a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 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'}>
{mdx.frontmatter.title}
</h1>
<Stack
className="mb-4"
direction={isMobile ? 'vertical' : 'horizontal'}
className={classNames('mb-4', { 'justify-content-end': isMobile })}
direction="horizontal"
gap={2}
>
<PageEditBtn githubEditPath={githubEditPath} />
Expand Down

0 comments on commit e66588a

Please sign in to comment.