Skip to content

Commit

Permalink
fix moderatorfeedback not breaking words
Browse files Browse the repository at this point in the history
fixes #2709
  • Loading branch information
goapunk authored and hom3mad3 committed Sep 19, 2024
1 parent f2fdc46 commit ad9d9d8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions adhocracy-plus/assets/scss/components/_a4-comments.scss
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@
.a4-comments__moderator-feedback__text {
color: $gray;
margin: 0.25 * $spacer 0;
overflow-wrap: anywhere;
}

.a4-comments__moderator-feedback__date {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
}

.moderator-feedback__body {
overflow-wrap: anywhere;

p:last-child {
margin-bottom: 0;
}
Expand Down
4 changes: 4 additions & 0 deletions adhocracy-plus/assets/scss/components/_userdashboard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@
align-items: center;
}

.userdashboard-mod-feedback__text {
overflow-wrap: anywhere;
}

.userdashboard-mod-notification__btn {
@extend .btn--none;
border: 1px solid $gray-lightest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const ModerationFeedback = (props) => {
</div>
<div className="row">
<div className="col-12">
<p>{feedbackText}</p>
<span className="userdashboard-mod-feedback__text">{feedbackText}</span>
</div>
</div>
</div>
Expand Down
4 changes: 4 additions & 0 deletions changelog/2709.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### Fixed

- fix moderator feedback on comments not breaking long words/urls (#2709)
- fix moderator feedback on ideas/proposals not breaking long words/urls (#2709)

0 comments on commit ad9d9d8

Please sign in to comment.