fix(statuspage): update timeline connector and dot positioning in statuspage incidents component

This commit is contained in:
2025-12-23 21:11:55 +00:00
parent 32bc42e355
commit 474751add8
3 changed files with 27 additions and 20 deletions

View File

@@ -351,21 +351,6 @@ export class UplStatuspageIncidents extends DeesElement {
padding-left: 24px;
}
/* Vertical connector line */
.timeline::before {
content: '';
position: absolute;
left: 7px;
top: 8px;
bottom: 8px;
width: 2px;
background: ${cssManager.bdTheme(
'linear-gradient(to bottom, #e5e7eb 0%, #d1d5db 50%, #e5e7eb 100%)',
'linear-gradient(to bottom, #27272a 0%, #3f3f46 50%, #27272a 100%)'
)};
border-radius: 1px;
}
.update-item {
position: relative;
padding-left: ${unsafeCSS(sharedStyles.spacing.lg)};
@@ -377,6 +362,18 @@ export class UplStatuspageIncidents extends DeesElement {
padding-bottom: 0;
}
/* Vertical connector line from each dot to the next */
/* Dot: left -22px, width 12px + border 2px*2 = 16px total, center at -14px */
.update-item:not(:last-child)::after {
content: '';
position: absolute;
left: -15px;
top: 18px;
bottom: 0;
width: 2px;
background: ${sharedStyles.colors.border.default};
}
/* Timeline dot */
.update-item::before {
content: '';
@@ -570,15 +567,17 @@ export class UplStatuspageIncidents extends DeesElement {
padding-left: 20px;
}
.timeline::before {
left: 4px;
}
.update-item::before {
left: -18px;
width: 10px;
height: 10px;
}
/* Mobile dot: left -18px, width 10px + border 2px*2 = 14px, center at -11px */
.update-item:not(:last-child)::after {
left: -12px;
top: 16px;
}
}
`,
];