Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Commit

Permalink
Merge branch 'beta' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
AruSeito committed Apr 10, 2024
2 parents 0024dad + f02a780 commit 404429f
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 25 deletions.
18 changes: 16 additions & 2 deletions apps/agent/src/Layout/Workspace/components/TipisTab/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Icon from "@ant-design/icons"
import { App, Button } from "antd"
import { App, Button, Tooltip } from "antd"
import { FC, MouseEventHandler } from "react"
import { useTranslation } from "react-i18next"
import { useDispatch, useSelector } from "react-redux"
Expand Down Expand Up @@ -94,7 +94,7 @@ const TipisTab: FC<ITipsTab> = (props) => {
dispatch(recentTabActions.updateCurrentRecentTabIDReducer(tabID))
}

return (
const navLinkComp = (
<NavLink
to={genTabNavigateLink(
currentTeamInfo?.identifier,
Expand Down Expand Up @@ -138,6 +138,20 @@ const TipisTab: FC<ITipsTab> = (props) => {
)}
</NavLink>
)

return isMiniSize ? (
<Tooltip
title={getTabName(tabName, tabType, tabID)}
placement="right"
align={{
offset: [6, 0],
}}
>
{navLinkComp}
</Tooltip>
) : (
navLinkComp
)
}

export default TipisTab
22 changes: 15 additions & 7 deletions apps/agent/src/Layout/Workspace/pc/modules/Menu/MiniMenu/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import Icon from "@ant-design/icons"
import { Button, Divider } from "antd"
import { Button, Divider, Tooltip } from "antd"
import { FC, useCallback, useContext } from "react"
import { NextDoubleIcon } from "@illa-public/icon"
import { TipisTrack } from "@illa-public/track-utils"
import UserInfoContent from "@/Layout/Workspace/components/UserInfoContent"
import RecentTabs from "@/Layout/Workspace/modules/RecentTabs"
import LogoIcon from "@/assets/public/logo.svg?react"
import MenuExpandIcon from "@/assets/workspace/menuExpand.svg?react"
import { MenuStatusUIContext } from "../context"
import {
dividerContainerStyle,
Expand Down Expand Up @@ -35,11 +35,19 @@ const MiniMenu: FC = () => {
<Icon component={LogoIcon} />
</div>
<div css={miniMenuLockSideBarContainerStyle}>
<Button
icon={<Icon component={NextDoubleIcon} />}
type="text"
onClick={onClickFoldButton}
/>
<Tooltip
title="展開"
placement="right"
align={{
offset: [16, 0],
}}
>
<Button
icon={<Icon component={MenuExpandIcon} />}
type="text"
onClick={onClickFoldButton}
/>
</Tooltip>
</div>
<div css={dividerContainerStyle}>
<Divider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Button } from "antd"
import { FC, useCallback, useContext } from "react"
import { TipisTrack } from "@illa-public/track-utils"
import TextAndLogo from "@/assets/public/textLogo.svg?react"
import MenuFoldIcon from "@/assets/workspace/menuFold.svg?react"
import MenuCollapseIcon from "@/assets/workspace/menuCollapse.svg?react"
import { MenuStatusUIContext } from "../Menu/context"
import { logoAndProjectNameContainerStyle, menuHeaderStyle } from "./style"

Expand All @@ -23,7 +23,7 @@ const MenuHeader: FC = () => {
</div>
<div>
<Button
icon={<Icon component={MenuFoldIcon} />}
icon={<Icon component={MenuCollapseIcon} />}
type="text"
onClick={onClickFoldButton}
/>
Expand Down
6 changes: 3 additions & 3 deletions apps/agent/src/assets/workspace/invite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions apps/agent/src/assets/workspace/menuCollapse.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions apps/agent/src/assets/workspace/menuExpand.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 0 additions & 6 deletions apps/agent/src/assets/workspace/menuFold.svg

This file was deleted.

0 comments on commit 404429f

Please sign in to comment.