kopia lustrzana https://github.com/bugout-dev/moonstream
reduce margins, flex basis, add responsivness
rodzic
44f9cfdfad
commit
017114c38d
|
|
@ -152,7 +152,7 @@ const Analytics = () => {
|
||||||
)
|
)
|
||||||
return <Spinner />;
|
return <Spinner />;
|
||||||
|
|
||||||
const plotMinW = "500px";
|
const plotMinW = "250px";
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Scrollable>
|
<Scrollable>
|
||||||
|
|
@ -160,7 +160,7 @@ const Analytics = () => {
|
||||||
h="100%"
|
h="100%"
|
||||||
w="100%"
|
w="100%"
|
||||||
m={0}
|
m={0}
|
||||||
px="7%"
|
px={["10px", "20px", "7%", null]}
|
||||||
direction="column"
|
direction="column"
|
||||||
alignItems="center"
|
alignItems="center"
|
||||||
minH="100vh"
|
minH="100vh"
|
||||||
|
|
@ -202,7 +202,7 @@ const Analytics = () => {
|
||||||
minH="320px"
|
minH="320px"
|
||||||
direction="column"
|
direction="column"
|
||||||
boxShadow="md"
|
boxShadow="md"
|
||||||
m={2}
|
m={["1px", 2]}
|
||||||
>
|
>
|
||||||
<Text
|
<Text
|
||||||
w="100%"
|
w="100%"
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ const Report = ({ data, timeRange }) => {
|
||||||
<ResponsiveLineCanvas
|
<ResponsiveLineCanvas
|
||||||
{...commonProperties}
|
{...commonProperties}
|
||||||
data={plotData}
|
data={plotData}
|
||||||
margin={{ top: 50, right: 110, bottom: 70, left: 60 }}
|
margin={{ top: 50, right: 5, bottom: 70, left: 60 }}
|
||||||
isInteractive={true}
|
isInteractive={true}
|
||||||
xScale={{
|
xScale={{
|
||||||
type: "time",
|
type: "time",
|
||||||
|
|
|
||||||
|
|
@ -20,15 +20,24 @@ const SubscriptionReport = ({ timeRange, url, id, type, refetchLinks }) => {
|
||||||
type: type,
|
type: type,
|
||||||
requestNewURLCallback: refetchLinks,
|
requestNewURLCallback: refetchLinks,
|
||||||
});
|
});
|
||||||
const plotMinW = "500px";
|
const plotMinW = "250px";
|
||||||
if (!data || isLoading) return <Spinner />;
|
if (!data || isLoading) return <Spinner />;
|
||||||
return (
|
return (
|
||||||
<Flex w="100%" h="auto" flexGrow={1} flexBasis="420px" direction="column">
|
<Flex
|
||||||
|
w="100%"
|
||||||
|
h="auto"
|
||||||
|
flexGrow={1}
|
||||||
|
flexBasis={plotMinW}
|
||||||
|
direction="column"
|
||||||
|
>
|
||||||
<Stack
|
<Stack
|
||||||
bgColor="blue.50"
|
bgColor="blue.50"
|
||||||
direction={["column", "row", null]}
|
direction={["column", "row", null]}
|
||||||
spacing={4}
|
spacing={4}
|
||||||
flexGrow={1}
|
flexGrow={1}
|
||||||
|
flexBasis={plotMinW}
|
||||||
|
m={1}
|
||||||
|
p={2}
|
||||||
>
|
>
|
||||||
{data?.web3_metric.map((metric) => {
|
{data?.web3_metric.map((metric) => {
|
||||||
return (
|
return (
|
||||||
|
|
@ -38,13 +47,10 @@ const SubscriptionReport = ({ timeRange, url, id, type, refetchLinks }) => {
|
||||||
placeSelf="center"
|
placeSelf="center"
|
||||||
p={2}
|
p={2}
|
||||||
bgColor="blue.100"
|
bgColor="blue.100"
|
||||||
m={4}
|
|
||||||
key={v4()}
|
key={v4()}
|
||||||
size="sm"
|
size="sm"
|
||||||
fontWeight="600"
|
fontWeight="600"
|
||||||
boxShadow="sm"
|
boxShadow="sm"
|
||||||
w="75px"
|
|
||||||
maxH="150px"
|
|
||||||
direction="column"
|
direction="column"
|
||||||
>
|
>
|
||||||
<Text placeSelf="center">{metric.display_name}</Text>
|
<Text placeSelf="center">{metric.display_name}</Text>
|
||||||
|
|
@ -64,7 +70,7 @@ const SubscriptionReport = ({ timeRange, url, id, type, refetchLinks }) => {
|
||||||
w="100%"
|
w="100%"
|
||||||
h="auto"
|
h="auto"
|
||||||
flexGrow={1}
|
flexGrow={1}
|
||||||
flexBasis="420px"
|
flexBasis={plotMinW}
|
||||||
direction="column"
|
direction="column"
|
||||||
>
|
>
|
||||||
<Heading size="sm">Events</Heading>
|
<Heading size="sm">Events</Heading>
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue