fix: styling of draggable report block header

When the drag handle is showing, it overlaps with the block header.
Decrease the opacity of the header so the handle can be seen and the two
can be distinguished.
This commit is contained in:
Charis Lam committed 2025-09-23 20:37:22 -04:00
1 parent e6b1e20889
commit 27c8b0095c
1 file changed
+6 -1
@@ -54,7 +54,12 @@ export const ReportBlockContainer = ({
) : (
<Code size={16} strokeWidth={1.5} className="text-foreground-muted" />
)}
<div className="flex items-center gap-2 flex-1">
<div
className={cn(
'flex items-center gap-2 flex-1 transition-opacity',
showDragHandle && 'group-hover:opacity-25'
)}
>
<h3 className="heading-meta truncate">{label}</h3>
{badge && <div className="flex items-center shrink-0">{badge}</div>}
</div>