refactor: new send input

This commit is contained in:
zerosoul
2022-03-23 16:31:54 +08:00
parent 4e56f15e24
commit b133780061
25 changed files with 727 additions and 859 deletions
+8 -40
View File
@@ -1,56 +1,24 @@
import styled from "styled-components";
const StyledSend = styled.div`
position: absolute;
bottom: -70px;
left: 50%;
transform: translateX(-50%);
position: relative;
background: #e5e7eb;
border-radius: 8px;
width: calc(100% - 32px);
min-height: 54px;
border-radius: var(--br);
width: 100%;
/* min-height: 54px; */
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 5px;
padding: 4px 18px;
justify-content: space-between;
gap: 15px;
padding: 14px 18px;
/* margin: 0 16px; */
&.user {
bottom: 10px;
}
&.reply {
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.input {
width: 100%;
position: relative;
.content {
resize: unset;
outline: none;
padding: 4px;
font-weight: 500;
font-size: 14px;
line-height: 20px;
color: #616161;
width: 100%;
border: none;
background: none;
}
.btn {
cursor: pointer;
border: none;
border-radius: 4px;
padding: 2px 6px;
background: green;
color: #fff;
font-size: 16px;
font-weight: bold;
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
}
/* padding: 4px 0; */
}
`;