Skip to content

Commit

Permalink
Add border around message input
Browse files Browse the repository at this point in the history
  • Loading branch information
patosullivan committed Jun 5, 2024
1 parent 6ac9786 commit ee05545
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/ui/src/components/Channel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,6 @@ export function Channel({
editPost={editPost}
floatingActionButton={channel.type === 'gallery'}
showAttachmentButton={channel.type !== 'gallery'}
backgroundColor="$secondaryBackground"
/>
)}
{!isChatChannel && canWrite && !showBigInput && (
Expand Down
12 changes: 10 additions & 2 deletions packages/ui/src/components/MessageInput/index.native.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ import {
import { Keyboard } from 'react-native';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
import type { WebViewMessageEvent } from 'react-native-webview';
import { getToken, useWindowDimensions } from 'tamagui';
import {
getToken,
getTokenValue,
useTheme,
useWindowDimensions,
} from 'tamagui';

import { useReferences } from '../../contexts/references';
import { XStack } from '../../core';
Expand Down Expand Up @@ -110,7 +115,7 @@ export const MessageInput = forwardRef<MessageInputHandle, MessageInputProps>(
setShowBigInput,
showAttachmentButton = true,
floatingActionButton = false,
backgroundColor = '$secondaryBackground',
backgroundColor = '$background',
paddingHorizontal,
initialHeight = DEFAULT_MESSAGE_INPUT_HEIGHT,
placeholder = 'Message',
Expand Down Expand Up @@ -633,6 +638,9 @@ export const MessageInput = forwardRef<MessageInputHandle, MessageInputProps>(
<RichText
style={{
backgroundColor: 'transparent',
borderRadius: getTokenValue('$xl', 'radius'),
borderColor: useTheme().shadow.val,
borderWidth: 1,
}}
editor={editor}
onMessage={handleMessage}
Expand Down

0 comments on commit ee05545

Please sign in to comment.