Skip to content

Commit 0563a13

Browse files
committed
fix problem redriect in mobile
1 parent 5c81e32 commit 0563a13

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

src/App.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,21 @@
7474
padding: 20px;
7575
background-color: #1a1c27;
7676
}
77+
78+
.problem-statement-link {
79+
text-decoration: none !important;
80+
color: #b3b3b3;
81+
}
82+
83+
.problem-statement-link:hover {
84+
color: #646464;
85+
}
86+
87+
.problem-statement-link:active {
88+
text-decoration: none;
89+
color: #b3b3b3;
90+
}
91+
7792
.problem-statement h4 a {
7893
text-decoration: none;
7994
color: #b3b3b3;

src/App.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,11 @@ const Problem = ({ problem, updateProblem }) => {
154154
<div className="problem-modal">
155155
<Modal isOpen={isOpen} toggle={toggleModal}>
156156
<ModalHeader toggle={toggleModal}>
157-
{data[problem].number + ". " + data[problem].name}
157+
<a className="problem-statement-link" href={data[problem].link} target="_blank">
158+
{data[problem].number +
159+
". " +
160+
data[problem].name}
161+
</a>
158162
</ModalHeader>
159163
<ModalBody>
160164
<div className="problem-statement">

0 commit comments

Comments
 (0)