Skip to content

Commit

Permalink
Mejora del historial #131 done
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-qg authored and MarcosBarrilVillaverde committed Apr 30, 2024
1 parent 2d3da27 commit 705bb17
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion webapp/src/userStats/components/Question.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ import React from 'react';
function Question(props) {
const { newQuestion } = props;

console.log(newQuestion)

return (
<div className='border'>
<div className='inner'>
<div className="header">
<h4>{newQuestion.title}</h4>
<h4>{newQuestion.title}</h4>
</div>
<div className='grid'>
{newQuestion.answers.map((answer, index) => {
Expand All @@ -21,6 +23,9 @@ function Question(props) {
}
})}
</div>
{newQuestion.ansIndex[0] === -1 ? (
<h5 className='noAnswer'>X Sin respuesta</h5>
) : null}
</div>
</div>
);
Expand Down
4 changes: 4 additions & 0 deletions webapp/src/userStats/css/Game.css
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,10 @@
gap: 1%;
}

#history .noAnswer{
color: red;
}

@media (max-width: 720px) {
#history .game{
display: grid;
Expand Down

0 comments on commit 705bb17

Please sign in to comment.