From 580641efe862c92cae5585a424b7e58749670c1a Mon Sep 17 00:00:00 2001 From: sylenien Date: Thu, 19 May 2022 12:23:23 +0200 Subject: [PATCH] fix(ui): fix css files --- .../DashboardMetricSelection.tsx | 3 +-- .../components/WidgetView/WidgetView.tsx | 12 ++++++++--- .../components/WidgetView/widgetView.css | 14 ------------- .../WidgetWrapper/WidgetWrapper.tsx | 17 ++++++++++----- .../WidgetWrapper/widgetWrapper.css | 21 ------------------- frontend/tailwind.config.js | 10 +++++++-- 6 files changed, 30 insertions(+), 47 deletions(-) delete mode 100644 frontend/app/components/Dashboard/components/WidgetView/widgetView.css diff --git a/frontend/app/components/Dashboard/components/DashboardMetricSelection/DashboardMetricSelection.tsx b/frontend/app/components/Dashboard/components/DashboardMetricSelection/DashboardMetricSelection.tsx index c7dfff71f..2833a71a6 100644 --- a/frontend/app/components/Dashboard/components/DashboardMetricSelection/DashboardMetricSelection.tsx +++ b/frontend/app/components/Dashboard/components/DashboardMetricSelection/DashboardMetricSelection.tsx @@ -117,8 +117,7 @@ function DashboardMetricSelection(props: IProps) { cn( "relative rounded border col-span-1 cursor-pointer", "flex items-center justify-center bg-white", - "hover:bg-active-blue text-center h-full", - stl.hoverBlue, + "hover:bg-active-blue hover:shadow-border-main text-center h-full", ) } onClick={props.handleCreateNew} diff --git a/frontend/app/components/Dashboard/components/WidgetView/WidgetView.tsx b/frontend/app/components/Dashboard/components/WidgetView/WidgetView.tsx index 9f5ab63f7..e7778efe3 100644 --- a/frontend/app/components/Dashboard/components/WidgetView/WidgetView.tsx +++ b/frontend/app/components/Dashboard/components/WidgetView/WidgetView.tsx @@ -6,9 +6,7 @@ import WidgetForm from '../WidgetForm'; import WidgetPreview from '../WidgetPreview'; import WidgetSessions from '../WidgetSessions'; import { useObserver } from 'mobx-react-lite'; -import { withSiteId } from 'App/routes'; import WidgetName from '../WidgetName'; -import stl from './widgetView.css'; interface Props { history: any; @@ -44,7 +42,15 @@ function WidgetView(props: Props) {
-
+

{}} id={`widget-${widget.widgetId}`} > - {isWidget &&
{isPredefined ? 'Cannot drill down system provided metrics' : 'Click to drill down'}
} + {!isTemplate && isWidget && +
+ {isPredefined ? 'Cannot drill down system provided metrics' : 'Click to drill down'} +
+ } {/* @ts-ignore */}