Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

1.8 KB
Raw Blame
.context-menu-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px;
	cursor: pointer;
	color: var(--muted-foreground);
	font-family: Inter;
	font-size: var(--font-size-sm);
	font-weight: 600;
	line-height: 17px;
	letter-spacing: 0.01em;
	transition: background-color 0.2s ease;
	border: none;
	background: transparent;
	width: 100%;
	text-align: left;
	height: 33px; /* Fixed height: 8px padding top + 17px line-height + 8px padding bottom */
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;

	&:hover,
	&:focus {
		outline: none;
		background-color: var(--l2-background-hover);
	}

	&.disabled {
		cursor: not-allowed;
		opacity: 0.5;
		pointer-events: none;

		&:hover {
			background-color: transparent;
		}
	}

	&.danger {
		color: var(--bg-cherry-400);

		.icon {
			color: var(--bg-cherry-400);
		}

		&:hover {
			background-color: var(--danger-background);
			color: var(--l1-foreground);
		}
	}

	.icon {
		color: var(--accent-primary);
		font-size: 14px;
		display: flex;
		align-items: center;
		flex-shrink: 0;
	}

	.text {
		flex: 1;
		font-size: 13px;
		font-weight: var(--font-weight-normal);
		line-height: 17px;
		letter-spacing: 0.01em;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		display: block;
		max-width: 100%;
	}
}

.context-menu-header {
	padding: 8px 12px;
	border-bottom: 1px solid var(--l2-border);
	color: var(--muted-foreground);
}

// Body-portaled overlay: stay clickable when a modal sets `body { pointer-events: none }`.
.context-menu {
	pointer-events: auto;
}

.context-menu .ant-popover-inner {
	padding: 0;
	border-radius: 6px;
	max-width: 300px;
	background: var(--l2-background) !important;
	border: 1px solid var(--l2-border) !important;
}

.context-menu-backdrop {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: transparent;
	cursor: default;
	pointer-events: auto;
}