mirror of
https://github.com/hsjobeki/noogle.git
synced 2024-12-25 06:53:17 +03:00
open all links in new tabs
This commit is contained in:
parent
672f1b28c9
commit
6c4ae98227
@ -102,12 +102,12 @@ export const Preview = (props: PreviewProps) => {
|
|||||||
<ListItem sx={{ flexDirection: { xs: "column", sm: "row" }, px: 0 }}>
|
<ListItem sx={{ flexDirection: { xs: "column", sm: "row" }, px: 0 }}>
|
||||||
<ListItemIcon>
|
<ListItemIcon>
|
||||||
<Tooltip title={"read docs"}>
|
<Tooltip title={"read docs"}>
|
||||||
<MuiLink sx={{ m: "auto", color: "primary.light" }}>
|
<MuiLink
|
||||||
<Link
|
sx={{ m: "auto", color: "primary.light" }}
|
||||||
href={!id.includes("builtins") ? libDocsRef : builtinsDocsRef}
|
target="_blank"
|
||||||
>
|
href={!id.includes("builtins") ? libDocsRef : builtinsDocsRef}
|
||||||
<LocalLibraryIcon sx={{ m: "auto" }} />
|
>
|
||||||
</Link>
|
<LocalLibraryIcon sx={{ m: "auto" }} />
|
||||||
</MuiLink>
|
</MuiLink>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</ListItemIcon>
|
</ListItemIcon>
|
||||||
@ -131,15 +131,14 @@ export const Preview = (props: PreviewProps) => {
|
|||||||
primary={
|
primary={
|
||||||
!id.includes("builtins") ? (
|
!id.includes("builtins") ? (
|
||||||
<Tooltip title={"browse source code"}>
|
<Tooltip title={"browse source code"}>
|
||||||
<MuiLink>
|
<MuiLink
|
||||||
<Link
|
target={"_blank"}
|
||||||
href={`https://github.com/NixOS/nixpkgs/blob/master/${category.replace(
|
href={`https://github.com/NixOS/nixpkgs/blob/master/${category.replace(
|
||||||
"./",
|
"./",
|
||||||
""
|
""
|
||||||
)}`}
|
)}`}
|
||||||
>
|
>
|
||||||
{"github:NixOS/nixpkgs/" + category.replace("./", "")}
|
{"github:NixOS/nixpkgs/" + category.replace("./", "")}
|
||||||
</Link>
|
|
||||||
</MuiLink>
|
</MuiLink>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
) : (
|
) : (
|
||||||
@ -193,15 +192,15 @@ export const Preview = (props: PreviewProps) => {
|
|||||||
<ListItem sx={{ flexDirection: { xs: "column", sm: "row" }, px: 0 }}>
|
<ListItem sx={{ flexDirection: { xs: "column", sm: "row" }, px: 0 }}>
|
||||||
<ListItemIcon>
|
<ListItemIcon>
|
||||||
<Tooltip title={"browse source code"}>
|
<Tooltip title={"browse source code"}>
|
||||||
<MuiLink sx={{ m: "auto", color: "primary.light" }}>
|
<MuiLink
|
||||||
<Link
|
sx={{ m: "auto", color: "primary.light" }}
|
||||||
href={`https://github.com/NixOS/nixpkgs/blob/master/${category.replace(
|
target="_blank"
|
||||||
"./",
|
href={`https://github.com/NixOS/nixpkgs/blob/master/${category.replace(
|
||||||
""
|
"./",
|
||||||
)}`}
|
""
|
||||||
>
|
)}`}
|
||||||
<InputIcon sx={{ m: "auto" }} />
|
>
|
||||||
</Link>
|
<InputIcon sx={{ m: "auto" }} />
|
||||||
</MuiLink>
|
</MuiLink>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</ListItemIcon>
|
</ListItemIcon>
|
||||||
|
Loading…
Reference in New Issue
Block a user