Skip to content

Commit 3b4561e

Browse files
ihor-romaniukleangseu-edx
authored andcommitted
fix: fix alignment in the streak celebration modal
1 parent cf3b3a2 commit 3b4561e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/shared/streak-celebration/StreakCelebrationModal.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ function StreakModal({
160160
</ModalDialog.Title>
161161
</ModalDialog.Header>
162162
<ModalDialog.Body className="modal-body">
163-
<p>{intl.formatMessage(messages.streakBody)}</p>
164-
<p className="modal-image">
163+
<p className="text-center">{intl.formatMessage(messages.streakBody)}</p>
164+
<p className="modal-image text-center">
165165
{!wideScreen && <img src={StreakMobileImage} alt="" className="img-fluid" />}
166166
{wideScreen && <img src={StreakDesktopImage} alt="" className="img-fluid" />}
167167
</p>

src/shared/streak-celebration/StreakCelebrationModal.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
.modal-body {
2727
padding-top: .5rem;
2828
font-size: 1.2rem;
29+
30+
.pgn__modal-body-content {
31+
text-align: center;
32+
}
2933
}
3034

3135
.modal-footer {

0 commit comments

Comments
 (0)