mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Laura/standardise border radius in explore (#64338)
* refactor: remove border radius in ExploreGraph * refactor: remove border radius in NoData * refactor: remove border radius in TracePageSearchBar * refactor: replace border radius in TracePageSearchBar and TraceViewContainer
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { css, cx } from '@emotion/css';
|
||||
import { css } from '@emotion/css';
|
||||
import { identity } from 'lodash';
|
||||
import React, { useEffect, useMemo, useState } from 'react';
|
||||
|
||||
@@ -159,7 +159,7 @@ export function ExploreGraph({
|
||||
return (
|
||||
<PanelContextProvider value={panelContext}>
|
||||
{data.length > MAX_NUMBER_OF_TIME_SERIES && !showAllTimeSeries && (
|
||||
<div className={cx([style.timeSeriesDisclaimer])}>
|
||||
<div className={style.timeSeriesDisclaimer}>
|
||||
<Icon className={style.disclaimerIcon} name="exclamation-triangle" />
|
||||
Showing only {MAX_NUMBER_OF_TIME_SERIES} time series.
|
||||
<Button
|
||||
@@ -191,9 +191,7 @@ const getStyles = (theme: GrafanaTheme2) => ({
|
||||
label: time-series-disclaimer;
|
||||
margin: ${theme.spacing(1)} auto;
|
||||
padding: 10px 0;
|
||||
border-radius: ${theme.spacing(2)};
|
||||
text-align: center;
|
||||
background-color: ${theme.colors.background.primary};
|
||||
`,
|
||||
disclaimerIcon: css`
|
||||
label: disclaimer-icon;
|
||||
|
||||
@@ -20,7 +20,7 @@ const getStyles = (theme: GrafanaTheme2) => ({
|
||||
label: no-data-card;
|
||||
padding: ${theme.spacing(3)};
|
||||
background: ${theme.colors.background.primary};
|
||||
border-radius: ${theme.shape.borderRadius(2)};
|
||||
border-radius: ${theme.shape.borderRadius()};
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
@@ -28,7 +28,7 @@ const getStyles = (theme: GrafanaTheme2) => ({
|
||||
background-color: ${theme.colors.background.primary};
|
||||
border: 1px solid ${theme.colors.border.medium};
|
||||
position: relative;
|
||||
border-radius: 3px;
|
||||
border-radius: ${theme.shape.borderRadius()};
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
@@ -38,7 +38,7 @@ export const getStyles = (theme: GrafanaTheme2) => {
|
||||
margin-bottom: -48px;
|
||||
padding: 8px;
|
||||
margin-right: 2px;
|
||||
border-radius: 4px;
|
||||
border-radius: ${theme.shape.borderRadius()};
|
||||
box-shadow: ${theme.shadows.z2};
|
||||
`,
|
||||
TracePageSearchBarBar: css`
|
||||
|
||||
Reference in New Issue
Block a user