feat(ui): mirror delete hover overlay in timeline
This commit is contained in:
@@ -87,6 +87,7 @@
|
||||
border-radius: 0;
|
||||
border: 1px solid var(--border-base);
|
||||
background-color: var(--surface-secondary);
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -98,6 +99,36 @@
|
||||
transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
|
||||
}
|
||||
|
||||
.message-timeline-segment[data-delete-hover="true"]::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: var(--status-error-bg);
|
||||
box-shadow: inset 0 0 0 1px var(--status-error-fg);
|
||||
border-radius: 0;
|
||||
pointer-events: none;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
/* Ensure delete hover is visible even on the active segment styling. */
|
||||
.message-timeline-segment[data-delete-hover="true"],
|
||||
.message-timeline-segment[data-delete-hover="true"]:hover,
|
||||
.message-timeline-segment[data-delete-hover="true"]:focus-visible,
|
||||
.message-timeline-segment-active[data-delete-hover="true"],
|
||||
.message-timeline-segment-active[data-delete-hover="true"]:hover,
|
||||
.message-timeline-segment-active[data-delete-hover="true"]:focus-visible {
|
||||
/* Let the ::before overlay provide the highlight (matches stream behavior). */
|
||||
background-color: transparent !important;
|
||||
border-color: transparent !important;
|
||||
box-shadow: none !important;
|
||||
transform: none !important;
|
||||
}
|
||||
|
||||
.message-timeline-label {
|
||||
position: relative;
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
.message-timeline-segment.message-timeline-segment-hidden {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user