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.

4.3 KB
Raw Blame
.log-detail-drawer {
	border-left: 1px solid var(--l1-border);
	background: var(--l2-background);
	box-shadow: -4px 10px 16px 2px rgba(0, 0, 0, 0.2);

	.log-detail-drawer__title {
		display: flex;
		justify-content: space-between;
		align-items: center;

		.log-detail-drawer__title-left {
			display: flex;
			align-items: center;
			gap: 8px;
		}

		.log-detail-drawer__title-right {
			display: flex;
			align-items: center;
			.ant-btn {
				display: flex;
				align-items: center;
			}
		}
	}

	.ant-drawer-header {
		padding: 8px 16px;
		border-bottom: none;

		align-items: stretch;

		border-bottom: 1px solid var(--l1-border);
		background: var(--l2-background);
	}

	.ant-drawer-close {
		margin-inline-end: 0px;
	}

	.ant-drawer-body {
		display: flex;
		flex-direction: column;
		padding: 0 16px;
		// OverlayScrollbar owns the scroll. A native scrollbar here changes the
		// body width when it toggles and shifts the header grid.
		overflow: hidden;
	}

	.title {
		color: var(--l2-foreground);
		font-family: Inter;
		font-size: var(--font-size-sm);
		font-style: normal;
		font-weight: var(--font-weight-normal);
		line-height: 20px; /* 142.857% */
		letter-spacing: -0.07px;
	}

	.radio-button {
		display: flex;
		align-items: center;
		justify-content: center;
		padding-top: var(--padding-1);
		border: 1px solid var(--l1-border);
		background: var(--l3-background);
		box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);
	}

	&-query-container {
		margin-bottom: 16px;
	}

	.log-detail-drawer__content {
		min-height: 100%;
	}

	.log-detail-drawer__log {
		width: 100%;
		display: flex;
		align-items: center;
		gap: 4px;
		position: relative;
		margin-top: 16px;

		.log-body {
			font-family: 'SF Mono';
			font-family: 'Geist Mono';

			font-size: var(--font-size-sm);
			font-weight: var(--font-weight-normal);
			line-height: 18px;
			letter-spacing: -0.07px;
			white-space: nowrap;
			text-overflow: ellipsis;
			overflow: hidden;
			color: var(--l2-foreground);
			opacity: 0.6;
		}

		.log-type-indicator {
			height: 24px;
			border: 2px solid var(--l1-border);
			border-radius: 5px;
			margin-left: 0;

			&.INFO {
				border-color: var(--l1-border);
			}

			&.WARNING {
				border-color: var(--bg-amber-400);
			}

			&.ERROR {
				border-color: var(--danger-background);
			}
		}

		.log-overflow-shadow {
			background: linear-gradient(270deg, var(--card) 10.4%, transparent 100%);

			width: 196px;
			position: absolute;
			right: 0;
		}
	}

	.log-detail-drawer__section-divider {
		height: 8px;
		margin: 12px 0;
		background-image:
			radial-gradient(circle, var(--l3-border) 1px, transparent 1px),
			radial-gradient(circle, var(--l3-border) 1px, transparent 1px);
		background-size: 6px 2px;
		background-position:
			left top,
			left bottom;
		background-repeat: repeat-x;
	}

	.tabs-and-search {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin: 16px 0;

		.action-btn {
			border-radius: 2px;
			border: 1px solid var(--l1-border);
			background: var(--l3-background);
			box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);
			display: flex;
			align-items: center;
			justify-content: center;
		}

		.log-detail-drawer__actions {
			display: flex;
			gap: 4px;
		}
	}

	.view-title {
		display: flex;
		gap: var(--margin-2);
		align-items: center;
		justify-content: center;
		font-size: var(--font-size-xs);
		font-style: normal;
		font-weight: var(--font-weight-normal);
	}

	.search-input {
		margin-top: var(--margin-2);
		border: 1px solid var(--l1-border);
		height: 46px;
		padding: var(--padding-1) var(--padding-2);
		box-shadow: none;
		border-radius: 0;
	}

	.ant-drawer-close {
		padding: 0px;
	}
	.log-detail-drawer__footer-hint {
		position: sticky;
		bottom: 0;
		left: 0;
		right: 0;
		padding: 8px 16px;
		text-align: left;
		color: var(--l3-foreground);
		background: var(--l2-background);
		z-index: 10;

		.log-detail-drawer__footer-hint-content {
			display: flex;
			align-items: center;
			gap: 4px;
		}

		.log-detail-drawer__footer-hint-icon {
			display: inline;
			vertical-align: middle;
			color: var(--l3-foreground);
		}

		.log-detail-drawer__footer-hint-text {
			font-size: 13px;
			margin: 0;
		}
	}
	.log-arrows {
		display: flex;
		box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);
		border-radius: 6px;
		padding: 2px 6px;
		align-items: center;
		margin-left: 8px;
	}
}