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:
@@ -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>
|
||||||
));
|
));
|
||||||
|
@@ -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"
|
||||||
|
Reference in New Issue
Block a user