Skip to content

Commit

Permalink
fix: code style
Browse files Browse the repository at this point in the history
  • Loading branch information
kuizuo committed Jun 11, 2024
1 parent 271831a commit 037a426
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@
],
"[tailwindcss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
}
}
2 changes: 1 addition & 1 deletion src/pages/friends/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ avatar: 'https://kuizuo.cn/img/logo.png'
function SiteInfo() {
return (
<div className="w-96 rounded-[var(--ifm-pre-border-radius)] border border-black border-solid border-opacity-10 text-left text-sm leading-none">
<CodeBlock language="yaml" title="本站信息">
<CodeBlock language="yaml" title="本站信息" className={styles.codeBlock}>
{SITE_INFO}
</CodeBlock>
</div>
Expand Down
5 changes: 5 additions & 0 deletions src/pages/friends/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@
@apply p-4;
--ifm-pre-padding: 0 1rem 1rem;
}

.codeBlock pre {
padding: 0;
margin: 0;
}
1 change: 0 additions & 1 deletion src/theme/CodeBlock/Content/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

.codeBlock {
--ifm-pre-background: var(--prism-background-color);
margin: 0;
padding: 0;
}

Expand Down

0 comments on commit 037a426

Please sign in to comment.