forked from mirrors/thatmattlove-hyperglass
fix table on Safari
This commit is contained in:
parent
ef713a59e6
commit
7b512a1beb
2 changed files with 6 additions and 17 deletions
|
|
@ -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>
|
||||
));
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue