mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 18:12:47 +03:00
chat: resolve conflicts in #3646
This commit is contained in:
parent
826248021a
commit
fc7f8600fb
@ -205,7 +205,7 @@ export default class ChatInput extends Component<ChatInputProps, ChatInputState>
|
|||||||
onPaste={this.onPaste.bind(this)}
|
onPaste={this.onPaste.bind(this)}
|
||||||
placeholder='Message...'
|
placeholder='Message...'
|
||||||
/>
|
/>
|
||||||
<div className="ml2 mr2"
|
<div className="ml2 mr2 flex-shrink-0"
|
||||||
style={{
|
style={{
|
||||||
height: '16px',
|
height: '16px',
|
||||||
width: '16px',
|
width: '16px',
|
||||||
@ -227,7 +227,7 @@ export default class ChatInput extends Component<ChatInputProps, ChatInputState>
|
|||||||
/>
|
/>
|
||||||
</S3Upload>
|
</S3Upload>
|
||||||
</div>
|
</div>
|
||||||
<div className="mr2" style={{
|
<div className="mr2 flex-shrink-0" style={{
|
||||||
height: '16px',
|
height: '16px',
|
||||||
width: '16px',
|
width: '16px',
|
||||||
flexBasis: 16,
|
flexBasis: 16,
|
||||||
|
@ -136,7 +136,7 @@ export default class ChatEditor extends Component {
|
|||||||
'chat fr h-100 flex bg-gray0-d lh-copy w-100 items-center ' +
|
'chat fr h-100 flex bg-gray0-d lh-copy w-100 items-center ' +
|
||||||
(inCodeMode ? ' code' : '')
|
(inCodeMode ? ' code' : '')
|
||||||
}
|
}
|
||||||
style={{ flexGrow: 1, paddingBottom: '3px', maxHeight: '224px', width: 'calc(100% - 72px)' }}>
|
style={{ flexGrow: 1, paddingBottom: '3px', maxHeight: '224px', width: 'calc(100% - 88px)' }}>
|
||||||
<CodeEditor
|
<CodeEditor
|
||||||
value={message}
|
value={message}
|
||||||
options={options}
|
options={options}
|
||||||
|
@ -64,7 +64,7 @@ export default class TextContent extends Component {
|
|||||||
&& (group[0] === content.text))) { // entire message is room name?
|
&& (group[0] === content.text))) { // entire message is room name?
|
||||||
return (
|
return (
|
||||||
<Link
|
<Link
|
||||||
className="bb b--black b--white-d f9 mono lh-copy v-top"
|
className="bb b--black b--white-d f8 mono lh-copy v-top"
|
||||||
to={'/~groups/join/' + group.input}>
|
to={'/~groups/join/' + group.input}>
|
||||||
{content.text}
|
{content.text}
|
||||||
</Link>
|
</Link>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import React, { Component } from 'react';
|
import React from 'react';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
|
import { Box, Text } from '@tlon/indigo-react';
|
||||||
|
|
||||||
export const UnreadNotice = (props) => {
|
export const UnreadNotice = (props) => {
|
||||||
const { unreadCount, unreadMsg, dismissUnread, onClick } = props;
|
const { unreadCount, unreadMsg, dismissUnread, onClick } = props;
|
||||||
@ -16,26 +17,41 @@ export const UnreadNotice = (props) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ left: '0px' }}
|
<Box style={{ left: '0px' }}
|
||||||
className="pa4 w-100 absolute z-1 unread-notice">
|
p='4'
|
||||||
<div className={
|
width='100%'
|
||||||
"ba b--green2 green2 bg-white bg-gray0-d flex items-center " +
|
position='absolute'
|
||||||
"pa2 f9 justify-between br1"
|
zIndex='1'
|
||||||
}>
|
className='unread-notice'
|
||||||
<p className="lh-copy db pointer" onClick={onClick}>
|
>
|
||||||
|
<Box
|
||||||
|
backgroundColor='white'
|
||||||
|
display='flex'
|
||||||
|
alignItems='center'
|
||||||
|
p='2'
|
||||||
|
fontSize='0'
|
||||||
|
justifyContent='space-between'
|
||||||
|
borderRadius='1'
|
||||||
|
border='1'
|
||||||
|
borderColor='blue'>
|
||||||
|
<Text flexShrink='0' display='block' cursor='pointer' onClick={onClick}>
|
||||||
{unreadCount} new messages since{' '}
|
{unreadCount} new messages since{' '}
|
||||||
{datestamp && (
|
{datestamp && (
|
||||||
<>
|
<>
|
||||||
<span className="green3">~{datestamp}</span> at{' '}
|
<Text color='blue'>~{datestamp}</Text> at{' '}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<span className="green3">{timestamp}</span>
|
<Text color='blue'>{timestamp}</Text>
|
||||||
</p>
|
</Text>
|
||||||
<div onClick={dismissUnread}
|
<Text
|
||||||
className="ml4 inter b--green2 pointer tr lh-copy">
|
ml='4'
|
||||||
|
color='blue'
|
||||||
|
cursor='pointer'
|
||||||
|
textAlign='right'
|
||||||
|
onClick={dismissUnread}>
|
||||||
Mark as Read
|
Mark as Read
|
||||||
</div>
|
</Text>
|
||||||
</div>
|
</Box>
|
||||||
</div>
|
</Box>
|
||||||
);
|
);
|
||||||
}
|
}
|
@ -231,6 +231,11 @@ blockquote {
|
|||||||
font-family: 'Inter';
|
font-family: 'Inter';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.chat .cm-s-tlon.CodeMirror {
|
||||||
|
font-size: 16px;
|
||||||
|
margin-top: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
pre, code {
|
pre, code {
|
||||||
background-color: var(--light-gray);
|
background-color: var(--light-gray);
|
||||||
}
|
}
|
||||||
@ -380,7 +385,8 @@ pre.CodeMirror-placeholder.CodeMirror-line-like { color: var(--gray); }
|
|||||||
.chat .cm-s-tlon.CodeMirror {
|
.chat .cm-s-tlon.CodeMirror {
|
||||||
background: #333;
|
background: #333;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 12px;
|
font-size: 16px;
|
||||||
|
margin-top: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat .cm-s-tlon span.cm-def {
|
.chat .cm-s-tlon span.cm-def {
|
||||||
|
Loading…
Reference in New Issue
Block a user