@@ -2,7 +2,7 @@ import { t, Trans } from "@lingui/macro";
22import { Box , Stack , Tooltip , Typography } from "@mui/material" ;
33import { groups } from "d3-array" ;
44import get from "lodash/get" ;
5- import React , { useCallback , useEffect , useMemo } from "react" ;
5+ import { useCallback , useEffect , useMemo } from "react" ;
66
77import { DEFAULT_SORTING , getFieldComponentIri } from "@/charts" ;
88import {
@@ -93,7 +93,7 @@ import {
9393 useDataCubesComponentsQuery ,
9494 useDataCubesObservationsQuery ,
9595} from "@/graphql/hooks" ;
96- import SvgIcExclamation from "@/icons/components/IcExclamation " ;
96+ import SvgIcInfoOutline from "@/icons/components/IcInfoOutline " ;
9797import { useLocale } from "@/locales/use-locale" ;
9898
9999export const ChartOptionsSelector = ( {
@@ -1097,19 +1097,13 @@ const ChartFieldAnimation = ({ field }: { field: AnimationField }) => {
10971097 } ) }
10981098 >
10991099 < Typography sx = { { color : "primary.main" } } >
1100- < SvgIcExclamation
1101- style = { {
1102- transform : "scale(0.8)" ,
1103- width : 18 ,
1104- height : 18 ,
1105- } }
1106- />
1100+ < SvgIcInfoOutline width = { 16 } height = { 16 } />
11071101 </ Typography >
11081102 </ Tooltip >
11091103 </ Box >
11101104 }
11111105 />
1112- < Flex sx = { { justifyContent : "flex-start" } } >
1106+ < Flex justifyContent = "flex-start" >
11131107 < ChartOptionRadioField
11141108 label = { t ( {
11151109 id : "controls.section.animation.type.continuous" ,
@@ -1130,8 +1124,9 @@ const ChartFieldAnimation = ({ field }: { field: AnimationField }) => {
11301124 />
11311125 </ Flex >
11321126 </ Box >
1133- < Box sx = { { display : "flex" , alignItems : "center" , mt : 5 } } >
1127+ < Box display = "flex" alignItems = "center" mt = { 5 } gap = "0.5rem" >
11341128 < ChartOptionSwitchField
1129+ sx = { { mr : 0 } }
11351130 label = { t ( {
11361131 id : "controls.section.animation.dynamic-scaling" ,
11371132 message : "Dynamic Scaling" ,
@@ -1147,14 +1142,8 @@ const ChartFieldAnimation = ({ field }: { field: AnimationField }) => {
11471142 "Enable dynamic scaling to adjust the chart's scale based on the data range, ensuring optimal visualization." ,
11481143 } ) }
11491144 >
1150- < Typography sx = { { ml : "-12px" , color : "primary.main" } } >
1151- < SvgIcExclamation
1152- style = { {
1153- transform : "scale(0.8)" ,
1154- width : 18 ,
1155- height : 18 ,
1156- } }
1157- />
1145+ < Typography color = "primary.main" >
1146+ < SvgIcInfoOutline width = { 16 } height = { 16 } />
11581147 </ Typography >
11591148 </ Tooltip >
11601149 </ Box >
0 commit comments