Skip to content

Commit

Permalink
Merge pull request #13 from Loliver1224/hotfix/layout
Browse files Browse the repository at this point in the history
モバイルページでのスタイル崩れ修正
  • Loading branch information
Loliver1224 authored Jul 2, 2023
2 parents ae8cd14 + 633ff5d commit a4fcf15
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
10 changes: 6 additions & 4 deletions components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,13 @@ export default function Layout({ children }: Props) {
</header>

<main className="flex justify-center grow bg-gradient">
<div className="flex gap-4 flex-wrap w-[1300px] mx-auto my-4">
<div className="bg-white flex-auto p-6 xl:max-w-[960px] rounded-md">
{children}
<div className="flex lg:flex-row flex-col gap-4 max-w-[1300px] xl:mx-auto my-4">
<div className="bg-white flex-1 rounded-md">
<div className="w-screen lg:w-[42rem] xl:w-fit p-6 mx-auto">
{children}
</div>
</div>
<div className="xl:w-80 grow">
<div className="basis-full md:basis-80">
<div className="bg-white rounded-md p-6">
<Profile />
</div>
Expand Down
2 changes: 1 addition & 1 deletion components/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function Profile() {
</div>
<div className="flex justify-center gap-2">
<Link
href="https://twitter.con/Lolitta_river"
href="https://twitter.com/Lolitta_river"
className="border rounded border-indigo-600 p-0.5"
>
<FaTwitter color="#4F46E5" />
Expand Down
8 changes: 8 additions & 0 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,12 @@ article ul {
@apply pl-6;
@apply mb-4;
}

pre {
@apply whitespace-pre-wrap;
}

code {
@apply break-words;
}
/** --------- */

0 comments on commit a4fcf15

Please sign in to comment.