chore: updates

This commit is contained in:
Tristan Yang
2023-03-07 11:03:49 +08:00
parent fa03ba4bb5
commit 0aa747ee7c
6 changed files with 344 additions and 314 deletions
+2 -2
View File
@@ -177,7 +177,7 @@
box-sizing: border-box;
width: calc(88%);
height: 1px;
background-color: #f2f4f7;
background-color: #aaa;
}
.context-menu .item.danger {
color: #a11043;
@@ -226,7 +226,7 @@ html.dark ::-webkit-scrollbar-thumb {
align-items: flex-start;
}
#MARKDOWN_CONTAINER .toastui-editor-contents iframe {
width: 100%;
width: 640px;
}
[class^="toastui-editor-"] .toastui-editor-md-container {
border-bottom: none;
@@ -19,7 +19,9 @@ const PreviewMessage: FC<Props> = ({ mid = 0, context }) => {
const pinMsg = context == "pin";
return (
<div className={clsx(`w-full relative flex items-start gap-3 p-2 my-2 rounded-lg`, pinMsg && "max-h-64 overflow-auto overflow-x-hidden border border-solid border-gray-200 dark:border-gray-400")}>
<Avatar width={40} height={40} className="rounded-full object-cover" src={avatar} name={name} />
<div className="w-10 h-10 flex shrink-0">
<Avatar width={40} height={40} className="rounded-full object-cover" src={avatar} name={name} />
</div>
<div className="w-full flex flex-col items-start">
<div className="flex items-center gap-2 font-semibold">
<span className="text-gray-500 text-sm">{name}</span>
+1 -1
View File
@@ -81,7 +81,7 @@ const Reaction: FC<Props> = ({ mid, reactions = null, readOnly = false }) => {
</i>
</Tippy>
{uids.length > 1 ? <em className="text-primary-600 text-xs">{`${uids.length}`} </em> : null}
{uids.length > 1 ? <i className="text-primary-600 text-xs not-italic">{`${uids.length}`} </i> : null}
</span>
) : null;
})}
+1 -1
View File
@@ -24,7 +24,7 @@ const TextInput = ({ sendMessage, placeholder }: Props) => {
return (
<div className='md:hidden relative mb-1 p-1 flex items-center w-full text-gray-600 dark:text-white bg-gray-200 dark:bg-gray-600 rounded-lg'>
<TextareaAutoSize
autoFocus
// autoFocus
onFocus={(e) =>
e.currentTarget.setSelectionRange(
e.currentTarget.value.length,