Skip to content

Commit 5662bb4

Browse files
Fix badges earned notification logic and restore badges UI layout
1 parent 2bfae61 commit 5662bb4

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/components/Badge/Badge.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@
9393
.new_badges {
9494
display: flex;
9595
flex-wrap: wrap;
96-
overflow-y: auto;
97-
height: 70px;
96+
overflow-y: scroll;
97+
height: 120px;
9898
}
9999

100100
.old_badges {

src/components/Badge/NewBadges.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Card, CardTitle, CardBody, UncontrolledTooltip } from 'reactstrap';
22
import BadgeImage from './BadgeImage';
33
import { WEEK_DIFF } from '../../constants/badge';
4-
import './Badge.module.css';
4+
import styles from './Badge.module.css';
55

66
function NewBadges(props) {
77
const filterBadges = allBadges => {
@@ -50,7 +50,8 @@ function NewBadges(props) {
5050
>
5151
New Badges Earned <i className="fa fa-info-circle" id="NewBadgeInfo" />
5252
</CardTitle>
53-
<div className={`new_badges ${props.darkMode ? 'text-light' : ''}`}>
53+
54+
<div className={`${styles.new_badges} ${props.darkMode ? 'text-light' : ''}`}>
5455
{filteredBadges.length === 0 ? (
5556
<strong
5657
style={{ opacity: 0.7 }}
@@ -76,6 +77,7 @@ function NewBadges(props) {
7677
</div>
7778
</CardBody>
7879
</Card>
80+
7981
<UncontrolledTooltip
8082
placement="right"
8183
target="NewBadgeInfo"

0 commit comments

Comments
 (0)