Skip to content

Commit

Permalink
Merge pull request #83 from /issues/82-fix-userIcon
Browse files Browse the repository at this point in the history
fix: userのiconのサイズを調整した
  • Loading branch information
SatooRu65536 authored Nov 25, 2024
2 parents 2f947c0 + 028c11e commit 7924aba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
font-size: $font-size-sm;
}

img {
.icon {
width: 24px;
height: 24px;
}
Expand Down
3 changes: 3 additions & 0 deletions src/components/CodeArea/index.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.codeArea {
padding: min(12px, 2%) min(18px, 3%) !important;
}
3 changes: 2 additions & 1 deletion src/components/CodeArea/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Prism } from 'react-syntax-highlighter';
import { oneLight } from 'react-syntax-highlighter/dist/esm/styles/prism';
import styles from './index.module.scss';

interface Props {
language: string;
Expand All @@ -8,7 +9,7 @@ interface Props {

export default function CodeArea({ language, code }: Props) {
return (
<Prism language={language} PreTag="div" style={oneLight}>
<Prism className={styles.codeArea} language={language} PreTag="div" style={oneLight}>
{code.replace(/\n$/, '')}
</Prism>
);
Expand Down

0 comments on commit 7924aba

Please sign in to comment.