Skip to content

Commit

Permalink
chore(web): only show func name of last depth (#1759)
Browse files Browse the repository at this point in the history
  • Loading branch information
sulnong authored Dec 29, 2023
1 parent 8315fda commit abb8bee
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions web/src/pages/app/functions/mods/HeadPanel/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useNavigate } from "react-router-dom";
import { CloseIcon } from "@chakra-ui/icons";
import { HStack, Input, useColorMode } from "@chakra-ui/react";
import { HStack, Input, useColorMode, Tooltip } from "@chakra-ui/react";
import clsx from "clsx";
import SimpleBar from "simplebar-react";

Expand Down Expand Up @@ -72,7 +72,10 @@ function HeadPanel() {
functionItem={item}
color={selected ? "#00A9A6" : ""}
/>
<p className="truncate">{item.name}</p>
<Tooltip label={item.name} placement="auto">
<p className="truncate">{item.name.split('/').pop()}</p>
</Tooltip>

</div>
{functionCache.getCache(item?._id, (item as any)?.source?.code) !==
(item as any)?.source?.code ? (
Expand Down

0 comments on commit abb8bee

Please sign in to comment.