diff --git a/src/chat/ChatDrawer.tsx b/src/chat/ChatDrawer.tsx index b3d8d3f..e574648 100644 --- a/src/chat/ChatDrawer.tsx +++ b/src/chat/ChatDrawer.tsx @@ -9,14 +9,24 @@ import Chat from "./Chat"; const useStyles = makeStyles((theme: Theme) => { return ({ chatDrawer: { + display: "flex", + flexDirection: "column", // Arrange children vertically backgroundColor: theme.palette.background.default, // padding: theme.spacing(1), height: "100%", + maxHeight: "100%", + minHeight: "100%", minWidth: theme.spacing(54), maxWidth: theme.spacing(54), + // border: "1px solid red", // zIndex: 1000000000000, // zIndex: theme.zIndex.drawer, }, + chatContainer: { + // border: "1px solid green", + flex: 1, // Make it take up the remaining space + overflow: "hidden", // Ensure content is scrollable if it overflows + }, chatDrawerMobile: { backgroundColor: theme.palette.background.default, // padding: theme.spacing(1), @@ -24,6 +34,7 @@ const useStyles = makeStyles((theme: Theme) => { width: "100%" }, drawerHeader: { + // border: "1px solid blue", display: "flex", alignItems: "center", padding: theme.spacing(1), @@ -46,7 +57,7 @@ export function ChatDrawer(props: Props) { const classes = useStyles() return ( - + @@ -54,7 +65,9 @@ export function ChatDrawer(props: Props) { {team.name()} Chat - + + + ) diff --git a/src/chat/ChatMessage.tsx b/src/chat/ChatMessage.tsx index 2cee16a..d41f92e 100644 --- a/src/chat/ChatMessage.tsx +++ b/src/chat/ChatMessage.tsx @@ -242,8 +242,8 @@ export default function ChatMessage(props: Props) { - - + + {props.note.content()} {/*load files and display attached images below the message */} diff --git a/src/chat/ChatOutput.tsx b/src/chat/ChatOutput.tsx index 73b7f55..b3c02a7 100644 --- a/src/chat/ChatOutput.tsx +++ b/src/chat/ChatOutput.tsx @@ -68,11 +68,11 @@ export default function ChatOutput(props: Props) { return ( {props.messages.length < props.totalMessages && (
diff --git a/src/pages/Team.tsx b/src/pages/Team.tsx index 745d216..27b07eb 100644 --- a/src/pages/Team.tsx +++ b/src/pages/Team.tsx @@ -1,6 +1,7 @@ -import { Avatar, AvatarGroup, Box, Button, Grid2, Theme, Typography } from "@mui/material"; +import { Avatar, AvatarGroup, Box, Button, Card, Grid2, Theme, Typography } from "@mui/material"; import { makeStyles } from "@mui/styles"; import LoadingScreen from "app/LoadingScreen"; +import Chat from "chat/Chat"; import { useMobile } from "hooks"; import { cloneDeep } from "lodash"; import { Team, teamScope, User } from "models"; @@ -28,6 +29,9 @@ const useStyles = makeStyles((theme: Theme) => ({ textTransform: "capitalize", color: getSignatureAccentColour(), }, + card: { + height: theme.spacing(72) + }, container: { display: 'flex', justifyContent: "space-between", @@ -207,6 +211,18 @@ export default function TeamPage() { closeDialogCallback={() => setUserDialog(false)} refreshCallback={() => {}} /> + + + + + + + + + + + + ); }