+@import 'variables';
+@import 'mixins';
+
.form-sub-title {
flex-grow: 0;
margin-right: 30px;
}
+
+.moderation-expanded-label {
+ font-weight: $font-semibold;
+ min-width: 200px;
+ display: inline-block;
+}
+
+.moderation-expanded-text {
+ display: inline-block;
+}
+
+.moderation-expanded {
+ word-wrap: break-word;
+ overflow: visible !important;
+ text-overflow: unset !important;
+ white-space: unset !important;
+}
<tr>
<th style="width: 40px"></th>
<th i18n pSortableColumn="state" style="width: 80px;">State <p-sortIcon field="state"></p-sortIcon></th>
- <th i18n>Reason</th>
<th i18n>Reporter</th>
<th i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>
<th i18n>Video</th>
<ng-template pTemplate="body" let-expanded="expanded" let-videoAbuse>
<tr>
<td>
- <span *ngIf="videoAbuse.moderationComment" class="expander" [pRowToggler]="videoAbuse">
+ <span class="expander" [pRowToggler]="videoAbuse">
<i [ngClass]="expanded ? 'glyphicon glyphicon-menu-down' : 'glyphicon glyphicon-menu-right'"></i>
</span>
</td>
<span *ngIf="isVideoAbuseRejected(videoAbuse)" [title]="videoAbuse.state.label" class="glyphicon glyphicon-remove"></span>
</td>
- <td>{{ videoAbuse.reason }}</td>
-
<td>
<a [href]="videoAbuse.reporterAccount.url" i18n-title title="Go to the account" target="_blank" rel="noopener noreferrer">
{{ createByString(videoAbuse.reporterAccount) }}
</ng-template>
<ng-template pTemplate="rowexpansion" let-videoAbuse>
- <tr class="moderation-comment">
- <td colspan="7">
- <span i18n class="moderation-comment-label">Moderation comment:</span>
- {{ videoAbuse.moderationComment }}
- </td>
- </tr>
+ <tr>
+ <td class="moderation-expanded" colspan="6">
+ <div>
+ <span i18n class="moderation-expanded-label">Reason:</span>
+ <span class="moderation-expanded-text">{{ videoAbuse.reason }}</span>
+ </div>
+ <div *ngIf="videoAbuse.moderationComment">
+ <span i18n class="moderation-expanded-label">Moderation comment:</span>
+ <span class="moderation-expanded-text">{{ videoAbuse.moderationComment }}</span>
+ </div>
+ </td>
+ </tr>
</ng-template>
</p-table>
+++ /dev/null
-@import 'variables';
-@import 'mixins';
-
-.moderation-comment-label {
- font-weight: $font-semibold;
-}
\ No newline at end of file
@Component({
selector: 'my-video-abuse-list',
templateUrl: './video-abuse-list.component.html',
- styleUrls: [ './video-abuse-list.component.scss']
+ styleUrls: [ '../moderation.component.scss']
})
export class VideoAbuseListComponent extends RestTable implements OnInit {
@ViewChild('moderationCommentModal') moderationCommentModal: ModerationCommentModalComponent
</ng-template>
<ng-template pTemplate="rowexpansion" let-videoBlacklist>
- <tr class="blacklist-reason">
- <td colspan="7">
- <span i18n class="blacklist-reason-label">Blacklist reason:</span>
- {{ videoBlacklist.reason }}
+ <tr>
+ <td class="moderation-expanded" colspan="5">
+ <span i18n class="moderation-expanded-label">Blacklist reason:</span>
+ <span class="moderation-expanded-text">{{ videoBlacklist.reason }}</span>
</td>
</tr>
</ng-template>
+++ /dev/null
-@import 'variables';
-@import 'mixins';
-
-.blacklist-reason-label {
- font-weight: $font-semibold;
-}
\ No newline at end of file
@Component({
selector: 'my-video-blacklist-list',
templateUrl: './video-blacklist-list.component.html',
- styleUrls: [ './video-blacklist-list.component.scss' ]
+ styleUrls: [ '../moderation.component.scss' ]
})
export class VideoBlacklistListComponent extends RestTable implements OnInit {
blacklist: VideoBlacklist[] = []