{placeholderVisible && (isGuest ?
:
)}
diff --git a/src/routes/chat/styled.tsx b/src/routes/chat/styled.tsx
index 12f1511c..3d116a7f 100644
--- a/src/routes/chat/styled.tsx
+++ b/src/routes/chat/styled.tsx
@@ -2,10 +2,9 @@ import styled from "styled-components";
const StyledWrapper = styled.div`
display: flex;
height: 100%;
- padding: 8px 48px 10px 0;
- &.guest {
- padding-right: 0;
- }
+ padding-top: 8px;
+ padding-bottom: 10px;
+ padding-right: 4px;
> .left {
background-color: #fff;
position: relative;
@@ -14,7 +13,7 @@ const StyledWrapper = styled.div`
min-width: 268px;
box-shadow: inset -1px 0px 0px rgba(0, 0, 0, 0.05);
height: 100%;
- overflow: auto;
+ /* overflow: auto; */
border-radius: 16px 0 0 16px;
.list {
margin: 12px 8px;
diff --git a/src/routes/chat/utils.tsx b/src/routes/chat/utils.tsx
index f1dbd84f..f854dedf 100644
--- a/src/routes/chat/utils.tsx
+++ b/src/routes/chat/utils.tsx
@@ -1,6 +1,5 @@
import React from "react";
import dayjs from "dayjs";
-import styled from "styled-components";
import { useDispatch } from "react-redux";
import { isImage } from "../../common/utils";
import { ContentTypes } from "../../app/config";
@@ -86,38 +85,6 @@ export const renderPreviewMessage = (message = null) => {
}
return res;
};
-const StyledWrapper = styled.div`
- position: relative;
- width: 100%;
- display: flex;
- align-items: flex-start;
- gap: 8px;
- > .overlay {
- position: absolute;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- cursor: pointer;
- }
- > .check {
- display: none;
- margin-top: 18px;
- margin-left: 8px;
- }
- > .message {
- flex: 1;
- }
- &.select {
- &:hover {
- border-radius: var(--br);
- background: #f5f6f7;
- }
- > .check {
- display: block;
- }
- }
-`;
const MessageWrapper = ({ selectMode = false, context, id, mid, children, ...rest }) => {
const dispatch = useDispatch();
@@ -129,13 +96,13 @@ const MessageWrapper = ({ selectMode = false, context, id, mid, children, ...res
dispatch(updateSelectMessages({ context, id, operation, data: mid }));
};
return (
-
-
+
+ {selectMode &&
}
{children}
{selectMode && (
-
+
)}
-
+
);
};
type Params = {