diff --git a/matrixgw_frontend/src/widgets/dashboard/DashboardSidebar.tsx b/matrixgw_frontend/src/widgets/dashboard/DashboardSidebar.tsx index 562c496..c733355 100644 --- a/matrixgw_frontend/src/widgets/dashboard/DashboardSidebar.tsx +++ b/matrixgw_frontend/src/widgets/dashboard/DashboardSidebar.tsx @@ -67,7 +67,7 @@ export default function DashboardSidebar({ const hasDrawerTransitions = isOverSmViewport && isOverMdViewport; const getDrawerContent = React.useCallback( - (viewport: "phone" | "tablet" | "desktop") => ( + (viewport: "phone" | "desktop") => ( - {getDrawerContent("tablet")} - - diff --git a/matrixgw_frontend/src/widgets/messages/RoomMessagesList.tsx b/matrixgw_frontend/src/widgets/messages/RoomMessagesList.tsx index bd024f9..8993084 100644 --- a/matrixgw_frontend/src/widgets/messages/RoomMessagesList.tsx +++ b/matrixgw_frontend/src/widgets/messages/RoomMessagesList.tsx @@ -1,10 +1,12 @@ -import { Dialog, Typography } from "@mui/material"; +import { Box, Button, ButtonGroup, Dialog, Typography } from "@mui/material"; import { MatrixApiEvent } from "../../api/matrix/MatrixApiEvent"; import type { UsersMap } from "../../api/matrix/MatrixApiProfile"; import type { Room } from "../../api/matrix/MatrixApiRoom"; import type { Message, RoomEventsManager } from "../../utils/RoomEventsManager"; import { AccountIcon } from "./AccountIcon"; import React from "react"; +import EditIcon from "@mui/icons-material/Edit"; +import DeleteIcon from "@mui/icons-material/Delete"; export function RoomMessagesList(p: { room: Room; @@ -67,6 +69,7 @@ function RoomMessage(p: { return ( <> + {/* Print date if required */} {p.firstMessageOfDay && ( )} + + {/* Give person name if required */} {(!p.previousFromSamePerson || p.firstMessageOfDay) && user && (
)} -
@@ -117,7 +132,26 @@ function RoomMessage(p: { ) : ( p.message.content )} -
+ + + + +