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 #3357

Closed
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.

2 changes: 1 addition & 1 deletion 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';
Bittukr7479 marked this conversation as resolved.
Show resolved Hide resolved
import type { ApolloQueryResult } from '@apollo/client';
import { useMutation, useQuery } from '@apollo/client';
import {
Expand Down
104 changes: 104 additions & 0 deletions src/style/app.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
--black: black;
--rating-star-filled: #ff6d75;
--rating-star-hover: #ff3d47;
--text-grey-light: #959595;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use a color in the name of the variable. Describe what it does. Look at the rating-star examples above.

/* Background and Border */
--table-bg: #eaebef;
--tablerow-bg: #eff1f7;
Expand All @@ -58,6 +59,7 @@
--tablerow-bg-color: var(--dropdown-hover-color);
--row-background: var(--bs-white, var(--bs-white));
--modal-background: rgba(0, 0, 0, 0.7);
--border-bottom-color: rgb(171, 171, 171);

/* Font Sizes */
--font-size-header: 16px;
Expand Down Expand Up @@ -92,6 +94,11 @@
--bs-gray-300: #d1d5db;
--toggle-button-bg: #1e4e8c;

/* icon */

--cancel-icon-color: rgb(197, 42, 42);
--check-icon-color: rgb(42, 197, 42);

--table-head-bg: var(--blue-subtle, var(--blue-color));
--table-head-color: var(--bs-white, var(--white-color));

Expand Down Expand Up @@ -5970,3 +5977,100 @@ button[data-testid='createPostBtn'] {
margin-left: 13vw;
max-width: 80vw;
}

/* GroupChatDetails */

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

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

.memberList::-webkit-scrollbar {
display: none;
}

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

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

.groupMembersList p {
margin: 0;
color: var(--text-grey-light);
}

.membersImage {
width: 40px !important;
}

.groupImage {
margin-bottom: 10px;
}

.editImgBtn {
padding: 2px 6px 6px 8px;
border-radius: 100%;
background-color: var(--white-color);
border: 1px solid var(--text-grey-light);
color: var(--text-grey-light);
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(--border-bottom-color);
outline: none;
padding: 0px 5px;
}

.editChatNameContainer h3 {
margin: 0;
}

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

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

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