Skip to content

Commit

Permalink
add page view
Browse files Browse the repository at this point in the history
  • Loading branch information
Sianao committed Dec 10, 2024
1 parent 1c96a21 commit 291af66
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/theme/comment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const WalineComment = () => {
// 初始化 Waline
walineInstanceRef.current = init({
el: '#waline',
pageview: true,
serverURL: 'https://comment.gitproxy.click',
});

Expand All @@ -36,17 +37,19 @@ const WalineComment = () => {

return (
<Container>

<Box
id="waline"
sx={{
width: '100%',
flexDirection: { xs: 'column', sm: 'row' },
justifyContent: 'space-between',
bgcolor: 'transparent', // 可以设置为透明,以使用 CSS 变量
p: 2, // 内边距
borderRadius: 2, // 边角圆润
boxShadow: theme.shadows[2], // 轻微阴影
bgcolor: 'transparent',
p: 2,
borderRadius: 2,
boxShadow: theme.shadows[2],
}}

/>

</Container>
Expand Down

0 comments on commit 291af66

Please sign in to comment.