Skip to content

Commit

Permalink
fixup! front: Change display when description is too long
Browse files Browse the repository at this point in the history
  • Loading branch information
theocrsb committed Oct 16, 2024
1 parent 8a98f03 commit 1cb5414
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ const ScenarioDescription = ({
<div ref={ref} className="scenario-description">
{scenario.description && (
<div
title={!isOpenedDescription ? scenario.description : ''}
title={isOpenedDescription ? '' : scenario.description}
className={`scenario-details-description ${isOpenedDescription ? 'opened' : 'not-opened'}`}
style={{ width: !isOpenedDescription ? width : width + 120 }}
style={{ width: isOpenedDescription ? width + 120 : width }}
>
{scenario.description}
<span
Expand All @@ -70,7 +70,7 @@ const ScenarioDescription = ({
tabIndex={0}
className={isOpenedDescription ? 'displayed-description' : 'display-description'}
>
{!isOpenedDescription ? '(plus)' : <X />}
{isOpenedDescription ? <X /> : '(plus)'}
</span>
</div>
)}
Expand Down

0 comments on commit 1cb5414

Please sign in to comment.