From f8cef9b9007cfe56a39aed32ac7a0730d14bbc70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Siatka?= Date: Mon, 7 Oct 2019 23:30:07 +0200 Subject: [PATCH] updated live tail button - responsive fold --- .../app/features/explore/LiveTailButton.tsx | 30 +++++++++++-------- public/sass/pages/_explore.scss | 12 ++++++++ 2 files changed, 30 insertions(+), 12 deletions(-) diff --git a/public/app/features/explore/LiveTailButton.tsx b/public/app/features/explore/LiveTailButton.tsx index dab4b210af4..c22879b2f5d 100644 --- a/public/app/features/explore/LiveTailButton.tsx +++ b/public/app/features/explore/LiveTailButton.tsx @@ -5,7 +5,7 @@ import memoizeOne from 'memoize-one'; import tinycolor from 'tinycolor2'; import { CSSTransition } from 'react-transition-group'; -import { GrafanaTheme, useTheme } from '@grafana/ui'; +import { GrafanaTheme, useTheme, Tooltip } from '@grafana/ui'; const getStyles = memoizeOne((theme: GrafanaTheme) => { const orangeLighter = tinycolor(theme.colors.orangeDark) @@ -91,6 +91,10 @@ const getStyles = memoizeOne((theme: GrafanaTheme) => { }; }); +const defaultZoomOutTooltip = () => { + return <>Live tailing; +}; + type LiveTailButtonProps = { start: () => void; stop: () => void; @@ -108,17 +112,19 @@ export function LiveTailButton(props: LiveTailButtonProps) { return ( <> - + + +