generated from nhcarrigan/template
feat: Multiple Features, Accessibility, Security, and UX Improvements #59
@@ -91,13 +91,15 @@ import { SanitizeService } from '../../services/sanitize.service';
|
||||
}
|
||||
@case (ActivityType.comment) {
|
||||
<div class="activity-comment">
|
||||
<div class="activity-comment-header">
|
||||
<span class="activity-icon">π¬</span>
|
||||
<span class="activity-text">
|
||||
commented on
|
||||
<a [routerLink]="['/' + activity.entityType + 's']" class="entity-link">
|
||||
<a [routerLink]="['/' + activity.entityType + 's', activity.entityId]" class="entity-link">
|
||||
{{ activity.entityTitle }}
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
<div class="comment-preview" [innerHTML]="sanitizeService.sanitizeHtml(activity.commentPreview)"></div>
|
||||
</div>
|
||||
}
|
||||
@@ -256,13 +258,19 @@ import { SanitizeService } from '../../services/sanitize.service';
|
||||
|
||||
.activity-suggestion,
|
||||
.activity-like,
|
||||
.activity-comment,
|
||||
.activity-comment-header,
|
||||
.activity-achievement {
|
||||
display: flex;
|
||||
align-items: start;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.activity-comment {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
.activity-icon {
|
||||
font-size: 1.5rem;
|
||||
line-height: 1;
|
||||
@@ -290,12 +298,12 @@ import { SanitizeService } from '../../services/sanitize.service';
|
||||
|
||||
.comment-preview {
|
||||
margin-top: 0.5rem;
|
||||
margin-left: 55px;
|
||||
padding: 0.75rem;
|
||||
background: #f9fafb;
|
||||
border-left: 3px solid #10b981;
|
||||
border-radius: 4px;
|
||||
color: #4b5563;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.status-badge {
|
||||
|
||||
Reference in New Issue
Block a user