Skip to content

Commit 84c2a4e

Browse files
committed
optimize ui with small steps
1 parent 6dfaecb commit 84c2a4e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

peachide/src/app/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ export default function RootLayout({
2626
<body>
2727
<ThemeProvider
2828
attribute="class"
29-
defaultTheme="system"
30-
enableSystem
29+
defaultTheme="light"
30+
enableSystem={false}
3131
disableTransitionOnChange
3232
>
3333
<UserProvider>

peachide/src/app/slides/[id]/Comments.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ function ReplyBox({ id, title, avatar, content, forPage, showPageNumber, childre
7272
{type === 'comment' ?
7373
(<>
7474
<ReplyDialog trigger={
75-
<Button variant="ghost" size="icon" className="size-4 mr-2">
75+
<Button variant="ghost" size="icon" className="size-4 mr-2 text-muted-foreground">
7676
<Reply />
7777
</Button>} props={{ page: forPage, type: "reply", id: id }} mutate={mutateReplies} />
7878
<span>·</span>
7979
<ExtraCommentDialog trigger={
8080
<Button variant="ghost" className="h-4 w-12 ml-1.5 flex items-center">
81-
<span className="text-xs text-gray-200">Reply {comment?.replies?.length ? `${comment?.replies?.length}` : '0'}</span>
81+
<span className="text-xs text-muted-foreground">Reply {comment?.replies?.length ? `${comment?.replies?.length}` : '0'}</span>
8282
</Button>} replies={comment?.replies} fromTitle={title}
8383
props={{ page: forPage, type: "comment", id: id }} />
8484
</>)

peachide/src/components/pdf/PDFPart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ export const PDFPart: React.FC<PDFPartProps> = ({ props, onFeedbackAction }) =>
232232
</Page>
233233
))}
234234
</PDFDocument>
235-
<div className="sticky bottom-0 left-0 z-[1000] flex items-center bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60">
235+
<div className="sticky bottom-0 left-0 z-[40] flex items-center bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60">
236236
<div className="flex">
237237
<Button variant="outline" size="icon" className="size-6 ml-2 mb-2 mt-2"
238238
onClick={() => setScale(scale + 0.1)}>

0 commit comments

Comments
 (0)