Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes[GoroupChatDetails]: Refactor CSS files in src/components/GroupChatDetails and updated the import #3447

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 0 additions & 94 deletions src/components/GroupChatDetails/GroupChatDetails.module.css

This file was deleted.

3 changes: 1 addition & 2 deletions src/components/GroupChatDetails/GroupChatDetails.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Paper, TableBody } from '@mui/material';
import React, { useRef, useState } from 'react';
import { Button, Form, ListGroup, Modal } from 'react-bootstrap';
import styles from './GroupChatDetails.module.css';
import styles from '../../style/app.module.css';
import type { ApolloQueryResult } from '@apollo/client';
import { useMutation, useQuery } from '@apollo/client';
import {
Expand Down Expand Up @@ -168,7 +168,6 @@ export default function groupChatDetails({

const handleUserModalSearchChange = (e: React.FormEvent): void => {
e.preventDefault();
/* istanbul ignore next */
const [firstName, lastName] = userName.split(' ');

const newFilterData = {
Expand Down
105 changes: 105 additions & 0 deletions src/style/app.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,14 @@

--drop-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);

--groupMemberList-p-color: #959595;
--editImgBtn-color: white;
--editImgBtn-border: #959595;
--editImgBtn: #959595;
--editChatNameContainer-input: rgb(171, 171, 171);
--icon-cancel: rgb(197, 42, 42);
--icon-check: rgb(42, 197, 42);

/* breakpoints */
--breakpoint-mobile: 576px;
--breakpoint-tablet: 768px;
Expand Down Expand Up @@ -8943,3 +8951,100 @@ button[data-testid='createPostBtn'] {
width: 65vw;
height: 0px !important;
}

/* GroupChatDetails */

.groupInfo {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}

.memberList {
max-height: 300px;
overflow: scroll;
}

.memberList::-webkit-scrollbar {
display: none;
}
Bittukr7479 marked this conversation as resolved.
Show resolved Hide resolved

.listItem {
display: flex;
align-items: center;
gap: 10px;
}

.groupMembersList {
display: flex;
align-items: center;
justify-content: space-between;
}

.groupMembersList p {
margin: 0;
color: var(--groupMemberList-p-color);
}

.membersImage {
width: 40px !important;
}

.groupImage {
margin-bottom: 10px;
}

.editImgBtn {
padding: 2px 6px 6px 8px;
border-radius: 100%;
background-color: var(--editImgBtn-color);
border: 1px solid var(--editImgBtn-border);
color: var(--editImgBtn);
outline: none;
position: relative;
top: -40px;
left: 40px;
}

.chatImage {
height: 120px;
border-radius: 100%;
width: 120px;
}

.editChatNameContainer {
display: flex;
gap: 15px;
align-items: center;
font-size: 20px;
margin-bottom: 10px;
}

.editChatNameContainer input {
border: none;
border-bottom: 1px solid var(--editChatNameContainer-input);
outline: none;
padding: 0px 5px;
}

.editChatNameContainer h3 {
margin: 0;
}

.cancelIcon {
color: var(--icon-cancel);
cursor: pointer;
font-size: 16px;
}

.checkIcon {
color: var(--icon-check);
cursor: pointer;
}

.chatUserDetails {
display: flex;
gap: 10px;
align-items: center;
}
Loading