Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
Blue color theme for Comments Panel
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvicenti committed Jan 10, 2024
1 parent 8300f68 commit 244a429
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions frontend/packages/app/components/accessory-sidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
import {ScrollView, SizableText, XStack, YStack} from '@mintter/ui'
import {Allotment} from 'allotment'
import {ComponentProps} from 'react'

export function AccessoryContainer({
children,
footer,
title,
...props
}: {
children: React.ReactNode
footer?: React.ReactNode
title?: string
}) {
} & ComponentProps<typeof YStack>) {
return (
<Allotment.Pane preferredSize="35%" maxSize={400} minSize={300}>
<YStack height="100%">
<YStack height="100%" {...props}>
{title ? (
<XStack
paddingHorizontal="$4"
Expand Down
2 changes: 2 additions & 0 deletions frontend/packages/app/components/comments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ export function EntityCommentsAccessory({
const createComment = trpc.comments.createCommentDraft.useMutation()
return (
<AccessoryContainer
backgroundColor={'$blue2'}
theme="blue"
title="Comments"
footer={
<YStack padding="$4" borderTopWidth={1} borderColor="$borderColor">
Expand Down
2 changes: 1 addition & 1 deletion frontend/packages/app/pages/comment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export default function CommentPage() {
return (
<>
<CommentPageTitlebarWithDocId targetDocId={targetDocId?.qid} />
<MainWrapperStandalone backgroundColor={'$blue2'}>
<MainWrapperStandalone backgroundColor={'$blue2'} theme="blue">
{comment.isLoading ? <Spinner /> : null}
{route.showThread && targetDocId && comment.data?.repliedComment ? (
<CommentThread
Expand Down

0 comments on commit 244a429

Please sign in to comment.