Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(web): adjust UI & fix bugs #717

Merged
merged 4 commits into from
Feb 2, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat(web): fix function tags
  • Loading branch information
kongwy229 committed Feb 2, 2023
commit d67d41776b566d2ecd05a382dd5642e8ee420a14
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import { BiMessageSquareDetail } from "react-icons/bi";
import { Popover, PopoverBody, PopoverContent, PopoverTrigger, Portal } from "@chakra-ui/react";
import {
Popover,
PopoverBody,
PopoverContent,
PopoverTrigger,
Portal,
Tag,
TagLabel,
} from "@chakra-ui/react";

import FileTypeIcon from "@/components/FileTypeIcon";
import IconWrap from "@/components/IconWrap";
Expand All @@ -25,10 +33,17 @@ const FunctionDetailPopOver = () => {
<span className="align-middle">{currentFunction.name}</span>{" "}
<FileTypeIcon type="ts" />
</h2>
<div className="text-second">
<div className="text-grayIron-600">
<span>更新于 {formatDate(currentFunction.updatedAt)}</span>
<p className="mt-2">{currentFunction.desc}</p>
</div>
<div className="w-full mt-2 flex flex-wrap justify-start items-center">
{currentFunction.tags.map((item: string) => (
<Tag className="mr-2 mb-2 cursor-pointer" key={item} variant="inputTag">
<TagLabel>{item}</TagLabel>
</Tag>
))}
</div>
</PopoverBody>
</PopoverContent>
</Portal>
Expand Down