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.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
feat(css): add tooltip to button hover & fix css
Nidhi Tandon239c2cb859b9
diff --git a/frontend/src/modules/Metrics/TopEndpointsTable.css b/frontend/src/modules/Metrics/TopEndpointsTable.cssindex cbf9a84828..526a2f8349 100644--- a/frontend/src/modules/Metrics/TopEndpointsTable.css+++ b/frontend/src/modules/Metrics/TopEndpointsTable.css@@ -1,3 +1,12 @@-.topEndpointsButton {- white-space: normal;+@media only screen and (min-width: 768px) {+ .topEndpointsButton {+ white-space: nowrap;+ padding: 0;+ }++ .topEndpointsButton span {+ text-overflow: ellipsis;+ overflow: hidden;+ max-width: 120px;+ }}diff --git a/frontend/src/modules/Metrics/TopEndpointsTable.tsx b/frontend/src/modules/Metrics/TopEndpointsTable.tsxindex 8b5eb26b99..6ab2022574 100644--- a/frontend/src/modules/Metrics/TopEndpointsTable.tsx+++ b/frontend/src/modules/Metrics/TopEndpointsTable.tsx@@ -1,5 +1,5 @@import React from "react";-import { Table, Button } from "antd";+import { Table, Button, Tooltip } from "antd";import { connect } from "react-redux";import styled from "styled-components";import { useHistory, useParams } from "react-router-dom";@@ -12,8 +12,11 @@ import "./TopEndpointsTable.css";const Wrapper = styled.div`padding-top: 10px;padding-bottom: 10px;- padding-left: 20px;- padding-right: 20px;+ padding-left: 8px;+ padding-right: 8px;+ @media only screen and (max-width: 767px) {+ padding: 0;+ }.ant-table table {font-size: 12px;}@@ -23,6 +26,9 @@ const Wrapper = styled.div`.ant-table-thead > tr > th {padding: 10px;}+ .ant-table-column-sorters {+ padding: 6px;+ }`;interface TopEndpointsTableProps {@@ -59,13 +65,15 @@ const _TopEndpointsTable = (props: TopEndpointsTableProps) => {key: "name",render: (text: string) => (- <Button- className="topEndpointsButton"- type="link"- onClick={() => handleOnClick(text)}- >- {text}- </Button>+ <Tooltip placement="topLeft" title={text}>+ <Button+ className="topEndpointsButton"+ type="link"+ onClick={() => handleOnClick(text)}+ >+ {text}+ </Button>+ </Tooltip>),},{