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 }) => (
<Text fontSize="sm" fontFamily="mono" {...props}>
{v}
@@ -163,13 +151,14 @@ const Communities = ({ communities }) => {
<PopoverContent
textAlign="left"
p={4}
maxW="fit-content"
width="unset"
color={colorMode === "dark" ? "white" : "black"}
fontFamily="mono"
fontWeight="normal"
whiteSpace="pre-wrap"
>
<PopoverArrow />
{communities.map(c => (
<MonoField fontWeight="normal" v={c} key={c.replace(":", "-")} />
))}
{communities.join("\n")}
</PopoverContent>
</Popover>
));

View File

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