Skip to content

Commit

Permalink
Merge pull request #154 from Suzu-Gears/feature/Add_Codeblock_horizon…
Browse files Browse the repository at this point in the history
…tal_scroll

Add Codeblock horizontal scroll
  • Loading branch information
otoyo committed Jul 27, 2023
2 parents 6b9d338 + 879961b commit 10c2874
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/components/notion-blocks/Code.astro
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ const grammer =
.code {
display: block;
width: 100%;
margin-bottom: 0.6rem;
}
.code > div {
background: rgb(247, 246, 243);
Expand All @@ -103,7 +104,19 @@ const grammer =
padding: 0.8rem 2rem 2rem;
font-size: 0.9rem;
line-height: 1.2rem;
white-space: pre-wrap;
white-space: pre;
width: 100px;
min-width: 100%;
overflow-x: auto;
&::-webkit-scrollbar {
height: 10px;
}
&::-webkit-scrollbar-thumb {
background: rgb(211, 209, 203);
}
&::-webkit-scrollbar-track {
background: rgb(237, 236, 233);
}
}
.code pre.mermaid {
padding: 2rem;
Expand Down

1 comment on commit 10c2874

@vercel
Copy link

@vercel vercel bot commented on 10c2874 Jul 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

astro-notion-blog – ./

astro-notion-blog-git-main-otoyo.vercel.app
astro-notion-blog-otoyo.vercel.app
astro-notion-blog-taupe.vercel.app

Please sign in to comment.