1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

fix table on Safari

This commit is contained in:
checktheroads
2020-06-06 01:25:42 -07:00
parent ef713a59e6
commit 7b512a1beb
2 changed files with 6 additions and 17 deletions

View File

@@ -59,18 +59,6 @@ const makeColumns = fields => {
}); });
}; };
// const longestASNLength = asPath => {
// if (asPath.length === 0) {
// return 0
// }
// const longest = asPath.reduce((l, c) => {
// const strLongest = String(l);
// const strCurrent = String(c);
// return strCurrent.length > strLongest.length ? strCurrent : strLongest;
// });
// return longest.length;
// };
const MonoField = ({ v, ...props }) => ( const MonoField = ({ v, ...props }) => (
<Text fontSize="sm" fontFamily="mono" {...props}> <Text fontSize="sm" fontFamily="mono" {...props}>
{v} {v}
@@ -163,13 +151,14 @@ const Communities = ({ communities }) => {
<PopoverContent <PopoverContent
textAlign="left" textAlign="left"
p={4} p={4}
maxW="fit-content" width="unset"
color={colorMode === "dark" ? "white" : "black"} color={colorMode === "dark" ? "white" : "black"}
fontFamily="mono"
fontWeight="normal"
whiteSpace="pre-wrap"
> >
<PopoverArrow /> <PopoverArrow />
{communities.map(c => ( {communities.join("\n")}
<MonoField fontWeight="normal" v={c} key={c.replace(":", "-")} />
))}
</PopoverContent> </PopoverContent>
</Popover> </Popover>
)); ));

View File

@@ -213,7 +213,7 @@ const Result = React.forwardRef(
"-ms-overflow-style": { display: "none" } "-ms-overflow-style": { display: "none" }
})(theme)} })(theme)}
> >
<Flex direction="row" flexWrap="wrap"> <Flex direction="column" flexWrap="wrap">
<Flex <Flex
direction="column" direction="column"
flex="1 0 auto" flex="1 0 auto"