slight styling changes
This commit is contained in:
parent
30f0d671af
commit
0ae37f1370
2 changed files with 3 additions and 6 deletions
|
|
@ -9,7 +9,7 @@ import { Note } from "models";
|
|||
import { pond } from "protobuf-ts/pond";
|
||||
import { makeStyles } from "@mui/styles";
|
||||
|
||||
const useStyles = makeStyles((theme: Theme) => {
|
||||
const useStyles = makeStyles((_theme: Theme) => {
|
||||
return ({
|
||||
chatContainer: {
|
||||
height: "100%",
|
||||
|
|
@ -38,8 +38,6 @@ export default function Chat(props: Props) {
|
|||
const loadChats = () => {
|
||||
setLoading(true)
|
||||
noteAPI.listChats(10, chats.length, "desc", "timestamp", objectKey).then(resp => {
|
||||
// if (loaded) setScrollPos(chats.length-10)
|
||||
// setScrollPos(chats.length)
|
||||
setChats(resp.data.chats ? resp.data.chats.reverse().concat(chats) : [])
|
||||
setTotalMessages(resp.data.total)
|
||||
}).finally(() => {
|
||||
|
|
@ -95,7 +93,6 @@ export default function Chat(props: Props) {
|
|||
<Box className={classes.chatContainer}>
|
||||
<ChatOutput
|
||||
totalMessages={totalMessages}
|
||||
// attachmentMap={attachmentMap}
|
||||
messages={chats}
|
||||
removeNoteMethod={removeNote}
|
||||
loadMore={loadMore}
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@ import { ArrowUpward } from "@mui/icons-material";
|
|||
const useStyles = makeStyles((theme: Theme) => ({
|
||||
textAreaBox: {
|
||||
width: "100%",
|
||||
padding: theme.spacing(1),
|
||||
paddingTop: theme.spacing(0),
|
||||
padding: theme.spacing(1.5),
|
||||
paddingTop: theme.spacing(0.75),
|
||||
},
|
||||
textAreaClass: {
|
||||
resize: "none",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue