Skip to content

Commit

Permalink
Tweak layout to suit mod and cm cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
GreenAsJade committed Oct 7, 2024
1 parent 52a0df3 commit e0397f5
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/views/ReportsCenter/ViewReport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,15 @@ export function ViewReport({ report_id, reports, onChange }: ViewReportProps): J
</div>
)}

{report.escalated &&
report.community_mod_note &&
(user.is_moderator || user.moderator_powers & MODERATOR_POWERS.SUSPEND) && (
<div className="notes">
<h4>Escalator's note:</h4>
<div className="Card">{report.community_mod_note}</div>
</div>
)}

{((!user.is_moderator && user.moderator_powers) || null) && (
<div className="voting">
<ModerationActionSelector
Expand Down Expand Up @@ -599,14 +608,6 @@ export function ViewReport({ report_id, reports, onChange }: ViewReportProps): J
</>
)}
</div>
{report.escalated &&
report.community_mod_note &&
(user.is_moderator || user.moderator_powers & MODERATOR_POWERS.SUSPEND) && (
<div className="community-mod-note">
<h5>Community Moderator Note:</h5>
<div className="Card">{report.community_mod_note}</div>
</div>
)}
{user.is_moderator && (
<div className="actions-right">
{reportState !== "resolved" && report.detected_ai_games?.length > 0 ? (
Expand Down

0 comments on commit e0397f5

Please sign in to comment.