Skip to content

Commit

Permalink
fix: updated text align for description
Browse files Browse the repository at this point in the history
  • Loading branch information
ishwar rimal authored and ishwar rimal committed Nov 29, 2024
1 parent 1062e83 commit 14342e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Popup/Popup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ const Popup = ({ show, correct, description, onClose }) => {
<div className={`popup-overlay`}>
<div className={`popup ${correct ? "popup-correct" : "popup-wrong"}`}>
<h3>{correct ? "Correct!" : "Wrong!"}</h3>
<div className="description">
<ReactMarkdown>{description}</ReactMarkdown>
</div>
<button className="popup-done-button" onClick={onClose}>
Done
</button>
Expand Down
4 changes: 4 additions & 0 deletions src/components/Popup/popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@
.popup-done-button:hover {
background-color: #0056b3;
}

.description {
text-align: left;
}

@keyframes fadeIn {
from {
Expand Down

0 comments on commit 14342e0

Please sign in to comment.