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 { pond } from "protobuf-ts/pond";
|
||||||
import { makeStyles } from "@mui/styles";
|
import { makeStyles } from "@mui/styles";
|
||||||
|
|
||||||
const useStyles = makeStyles((theme: Theme) => {
|
const useStyles = makeStyles((_theme: Theme) => {
|
||||||
return ({
|
return ({
|
||||||
chatContainer: {
|
chatContainer: {
|
||||||
height: "100%",
|
height: "100%",
|
||||||
|
|
@ -38,8 +38,6 @@ export default function Chat(props: Props) {
|
||||||
const loadChats = () => {
|
const loadChats = () => {
|
||||||
setLoading(true)
|
setLoading(true)
|
||||||
noteAPI.listChats(10, chats.length, "desc", "timestamp", objectKey).then(resp => {
|
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) : [])
|
setChats(resp.data.chats ? resp.data.chats.reverse().concat(chats) : [])
|
||||||
setTotalMessages(resp.data.total)
|
setTotalMessages(resp.data.total)
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
|
|
@ -95,7 +93,6 @@ export default function Chat(props: Props) {
|
||||||
<Box className={classes.chatContainer}>
|
<Box className={classes.chatContainer}>
|
||||||
<ChatOutput
|
<ChatOutput
|
||||||
totalMessages={totalMessages}
|
totalMessages={totalMessages}
|
||||||
// attachmentMap={attachmentMap}
|
|
||||||
messages={chats}
|
messages={chats}
|
||||||
removeNoteMethod={removeNote}
|
removeNoteMethod={removeNote}
|
||||||
loadMore={loadMore}
|
loadMore={loadMore}
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,8 @@ import { ArrowUpward } from "@mui/icons-material";
|
||||||
const useStyles = makeStyles((theme: Theme) => ({
|
const useStyles = makeStyles((theme: Theme) => ({
|
||||||
textAreaBox: {
|
textAreaBox: {
|
||||||
width: "100%",
|
width: "100%",
|
||||||
padding: theme.spacing(1),
|
padding: theme.spacing(1.5),
|
||||||
paddingTop: theme.spacing(0),
|
paddingTop: theme.spacing(0.75),
|
||||||
},
|
},
|
||||||
textAreaClass: {
|
textAreaClass: {
|
||||||
resize: "none",
|
resize: "none",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue