Increase mobile activity-feed spacing across the modal, dock, and standalone feed. - Add token-based mobile insets for activity-feed content. - Widen Activity Log modal and embedded right-dock padding. - Cover mobile inset behavior with CSS contract tests. Files changed: packages/dashboard/app/components/ActivityFeed.css | 11 +++ .../dashboard/app/components/ActivityLogModal.css | 7 +- packages/dashboard/app/components/ScriptsModal.css | 8 +- .../__tests__/activity-feed-mobile-inset.test.tsx | 107 +++++++++++++++++++++ 4 files changed, 130 insertions(+), 3 deletions(-) Fusion-Task-Id: FN-8122 Fusion-Task-Lineage: c6d81ee9-ae8d-4d2d-a765-2f44a73b1ac9 Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
255 lines
4.7 KiB
CSS
255 lines
4.7 KiB
CSS
/* === ActivityFeed Component === */
|
|
.activity-feed {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-lg);
|
|
max-height: 600px;
|
|
overflow-y: auto;
|
|
padding: var(--space-md);
|
|
}
|
|
|
|
/*
|
|
FNXC:ActivityFeedMobile 2026-07-16-00:00:
|
|
FN-8122 requires standalone Activity Feed content to keep a larger, balanced horizontal
|
|
inset on mobile so populated, loading, empty, and error states do not reach the viewport edge.
|
|
*/
|
|
@media (max-width: 768px) {
|
|
.activity-feed {
|
|
padding: var(--space-md) var(--space-lg);
|
|
}
|
|
}
|
|
|
|
.activity-feed-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.activity-feed-group-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: var(--space-sm) 0;
|
|
border-bottom: 1px solid var(--border);
|
|
margin-bottom: var(--space-sm);
|
|
position: sticky;
|
|
top: 0;
|
|
background: var(--surface);
|
|
z-index: 1;
|
|
}
|
|
|
|
.activity-feed-group-date {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.activity-feed-group-count {
|
|
font-size: calc(var(--space-sm) + var(--space-xs) * 0.75);
|
|
color: var(--text-muted);
|
|
background: var(--card);
|
|
padding: 2px 8px;
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.activity-feed-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.activity-feed-item {
|
|
display: flex;
|
|
gap: var(--space-md);
|
|
padding: var(--space-md);
|
|
background: var(--card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
transition: background-color var(--transition-fast);
|
|
}
|
|
|
|
.activity-feed-item:hover {
|
|
background: var(--card-hover);
|
|
}
|
|
|
|
.activity-feed-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 32px;
|
|
height: 32px;
|
|
background: var(--surface);
|
|
border-radius: var(--radius-md);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.activity-feed-content {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.activity-feed-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.activity-feed-type {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.activity-feed-project-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
font-size: 11px;
|
|
color: var(--todo);
|
|
background: color-mix(in srgb, var(--todo) 10%, transparent);
|
|
padding: 2px 8px;
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.activity-feed-details {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.activity-feed-task-id {
|
|
font-family: var(--font-mono);
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.activity-feed-task-title {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--text);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.activity-feed-description {
|
|
font-size: 13px;
|
|
color: var(--text-muted);
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.activity-feed-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.activity-feed-time {
|
|
font-size: 11px;
|
|
color: var(--text-dim);
|
|
}
|
|
|
|
/* Activity Feed States */
|
|
.activity-feed-loading {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 200px;
|
|
}
|
|
|
|
.activity-feed-skeleton {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-md);
|
|
width: 100%;
|
|
}
|
|
|
|
.activity-feed-skeleton-item {
|
|
display: flex;
|
|
gap: var(--space-md);
|
|
padding: var(--space-md);
|
|
}
|
|
|
|
.activity-feed-skeleton-icon {
|
|
width: 32px;
|
|
height: 32px;
|
|
background: var(--border);
|
|
border-radius: var(--radius-md);
|
|
flex-shrink: 0;
|
|
animation: pulse 1.5s ease-in-out infinite;
|
|
}
|
|
|
|
.activity-feed-skeleton-content {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.activity-feed-skeleton-line {
|
|
height: 12px;
|
|
background: var(--border);
|
|
border-radius: var(--radius-sm);
|
|
animation: pulse 1.5s ease-in-out infinite;
|
|
}
|
|
|
|
.activity-feed-skeleton-line.short {
|
|
width: 60%;
|
|
}
|
|
|
|
.activity-feed-error {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 200px;
|
|
padding: var(--space-xl);
|
|
}
|
|
|
|
.activity-feed-error-message {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: var(--space-md);
|
|
color: var(--color-error);
|
|
text-align: center;
|
|
}
|
|
|
|
.activity-feed-empty {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 300px;
|
|
padding: var(--space-xl);
|
|
}
|
|
|
|
.activity-feed-empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: var(--space-md);
|
|
color: var(--text-muted);
|
|
text-align: center;
|
|
}
|
|
|
|
.activity-feed-empty-state p {
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
color: var(--text);
|
|
margin: 0;
|
|
}
|
|
|
|
.activity-feed-empty-hint {
|
|
font-size: 13px;
|
|
color: var(--text-dim);
|
|
max-width: 300px;
|
|
}
|