Skip to content

Commit

Permalink
style: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
narayan954 committed Dec 17, 2023
1 parent 8f59242 commit 0879705
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
7 changes: 3 additions & 4 deletions src/components/CommunityChat/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,13 @@
color: var(--profile-color);
}

.date-separator{
.date-separator {
padding: 1.5rem 0;
list-style-type: none;
font-size: 15px;
color: var(--darkmode-white);
}


.current-user-msg {
flex-direction: row-reverse;
margin-left: auto;
Expand Down Expand Up @@ -285,8 +284,8 @@
}

@media screen and (max-width: 600px) {
.date-separator{
font-size: 9px;
.date-separator {
font-size: 9px;
}

.chat-msg-text {
Expand Down
9 changes: 4 additions & 5 deletions src/components/CommunityChat/index.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import React from "react";
import "./index.css";

import { ClickAwayListener, Divider } from "@mui/material";
import { Fragment, useEffect, useRef, useState } from "react";
import { auth, db } from "../../lib/firebase";
import { playErrorSound, playSuccessSound } from "../../js/sounds";
import { useEffect, useRef, useState } from "react";

import { Chip, ClickAwayListener, Divider } from "@mui/material";
import CloseIcon from "@mui/icons-material/Close";
import DeleteIcon from "@mui/icons-material/DeleteOutlineOutlined";
import EditIcon from "@mui/icons-material/EditOutlined";
Expand Down Expand Up @@ -318,7 +317,7 @@ const ChatBox = () => {
<div className="all-chat-msg-container" ref={chatMsgContainerRef}>
<ul className="chat-msg-container">
{Object.keys(groupedMessages).map((date) => (
<React.Fragment key={date}>
<Fragment key={date}>
<li className="date-separator">
<Divider
sx={{
Expand Down Expand Up @@ -414,7 +413,7 @@ const ChatBox = () => {
</div>
</li>
))}
</React.Fragment>
</Fragment>
))}
</ul>
</div>
Expand Down

0 comments on commit 0879705

Please sign in to comment.