diff --git a/frontend/app/components/Dashboard/components/MetricViewHeader/MetricViewHeader.tsx b/frontend/app/components/Dashboard/components/MetricViewHeader/MetricViewHeader.tsx index 4f33a2a8d..5aaaf68d5 100644 --- a/frontend/app/components/Dashboard/components/MetricViewHeader/MetricViewHeader.tsx +++ b/frontend/app/components/Dashboard/components/MetricViewHeader/MetricViewHeader.tsx @@ -15,17 +15,16 @@ function MetricViewHeader() {
- +
- {/* - - */} + + + metricStore.updateKey('listView', !listView) } value={{ value: listView ? 'list' : 'grid' }} list={ [ diff --git a/frontend/app/components/Dashboard/components/WidgetPreview/WidgetPreview.tsx b/frontend/app/components/Dashboard/components/WidgetPreview/WidgetPreview.tsx index 3bbc1c022..523dee9c8 100644 --- a/frontend/app/components/Dashboard/components/WidgetPreview/WidgetPreview.tsx +++ b/frontend/app/components/Dashboard/components/WidgetPreview/WidgetPreview.tsx @@ -45,7 +45,7 @@ function WidgetPreview(props: Props) { name="viewType" className="my-3" primary - icons={true} + size="small" onSelect={ changeViewType } value={{ value: metric.viewType }} list={ [ @@ -63,7 +63,7 @@ function WidgetPreview(props: Props) { name="viewType" className="my-3" primary={true} - icons={true} + size="small" onSelect={ changeViewType } value={{ value: metric.viewType }} list={[ diff --git a/frontend/app/components/ui/SegmentSelection/SegmentSelection.js b/frontend/app/components/ui/SegmentSelection/SegmentSelection.js index 36307eab3..5a5cef77f 100644 --- a/frontend/app/components/ui/SegmentSelection/SegmentSelection.js +++ b/frontend/app/components/ui/SegmentSelection/SegmentSelection.js @@ -48,7 +48,7 @@ class SegmentSelection extends React.Component { {item.icon && ( )} diff --git a/frontend/app/components/ui/SegmentSelection/segmentSelection.module.css b/frontend/app/components/ui/SegmentSelection/segmentSelection.module.css index 6d4db35b4..0cebeaa22 100644 --- a/frontend/app/components/ui/SegmentSelection/segmentSelection.module.css +++ b/frontend/app/components/ui/SegmentSelection/segmentSelection.module.css @@ -10,7 +10,8 @@ & .item { color: $gray-medium; font-weight: medium; - padding: 10px; + padding: 0 6px; + height: 33px; flex: 1; text-align: center; cursor: pointer; @@ -70,6 +71,7 @@ .small .item { padding: 4px 8px; + height: 26px; } .extraSmall .item {