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

fix: #2508 Refactor CSS files in src/screens/Leaderboard #2776

Merged
Show file tree
Hide file tree
Changes from 2 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
4 changes: 2 additions & 2 deletions src/screens/Leaderboard/Leaderboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import silver from 'assets/images/silver.png';
import bronze from 'assets/images/bronze.png';

import type { InterfaceVolunteerRank } from 'utils/interfaces';
import styles from '../OrganizationActionItems/OrganizationActionItems.module.css';
import styles from '../../style/app.module.css';
import Loader from 'components/Loader/Loader';
import {
DataGrid,
Expand Down Expand Up @@ -200,7 +200,7 @@ function leaderboard(): JSX.Element {
<Avatar
key={_id + '1'}
containerStyle={styles.imageContainer}
avatarStyle={styles.TableImage}
avatarStyle={styles.TableImageSmall}
palisadoes marked this conversation as resolved.
Show resolved Hide resolved
name={firstName + ' ' + lastName}
alt={firstName + ' ' + lastName}
/>
Expand Down
21 changes: 21 additions & 0 deletions src/style/app.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
--search-button-bg: #a8c7fa;
--search-button-border: #555555;
--table-image-size: 50px;
--table-image-small-size: 25px;
--bs-primary: #0056b3;
--bs-white: #fff;
--table-head-bg: var(--bs-primary, blue);
Expand Down Expand Up @@ -1594,6 +1595,26 @@ form > input {
}
}

/* * Refortoring css for Leaderboard */

.TableImageSmall {
object-fit: cover;
width: var(--table-image-small-size);
height: var(--table-image-small-size);
border-radius: 100%;
}

.avatarContainer {
width: 28px;
height: 26px;
}

.imageContainer {
display: flex;
align-items: center;
justify-content: center;
margin-right: 0.5rem;
=======
/* CSS Refactor for OrgPost */

.btnsContainerOrgPost {
Expand Down
Loading