Skip to content

Commit

Permalink
fix: improve mobile view
Browse files Browse the repository at this point in the history
  • Loading branch information
luizchaves committed Oct 12, 2024
1 parent 4fb7150 commit a97056e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/CodeTree.astro
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ const { src, content, githubUrl, devContainerUrl } = Astro.props;
const folder = src.split('/').at(-1);
const githubLink = githubUrl
? `<a href="${GITHUB_EDIT_URL + '/public' + src}" target="blank"><img class="inline" src="https://img.shields.io/badge/Open%20In%20GitHub-181717?style=for-the-badge&logo=github&logoColor=white" alt="Open in GitHub"></a>`
? `<a href="${GITHUB_EDIT_URL + '/public' + src}" target="blank"><img class="inline m-0" src="https://img.shields.io/badge/Open%20In%20GitHub-181717?style=for-the-badge&logo=github&logoColor=white" alt="Open in GitHub"></a>`
: '';
const devContainerLink = devContainerUrl
? `<a href="https://codespaces.new/ifpb/lp2?devcontainer_path=.devcontainer/${folder}/devcontainer.json" target="blank"><img class="inline" src="https://img.shields.io/badge/Open%20In%20Codespaces-181717?style=for-the-badge&logo=github&logoColor=white" alt="Open in Codespaces"></a>`
? `<a href="https://codespaces.new/ifpb/lp2?devcontainer_path=.devcontainer/${folder}/devcontainer.json" target="blank"><img class="inline m-0" src="https://img.shields.io/badge/Open%20In%20Codespaces-181717?style=for-the-badge&logo=github&logoColor=white" alt="Open in Codespaces"></a>`
: '';
const codeTree = existsSync(resolve('./public' + src))
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/MarkDownLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const githubEditUrl = `${GITHUB_EDIT_URL}/src${file.split('/src').pop()}`;
<Sidebar />

<article
class="mx-auto py-8 max-sm:px-4 prose 2xl:prose-xl dark:prose-invert overflow-hidden"
class="mx-auto py-8 max-sm:px-4 max-sm:w-full prose 2xl:prose-xl dark:prose-invert overflow-hidden"
>
<slot />

Expand Down

0 comments on commit a97056e

Please sign in to comment.