Skip to content

Commit

Permalink
Update SearchApi.js (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
kerwin612 authored Sep 17, 2023
1 parent f3d248b commit 40bb7d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/Document/components/SearchApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const SearchApi = React.forwardRef((props, ref) => {
) : (
<>
<Text code>{Method[item.httpMethod]}</Text>
<Tooltip title={item.apiPath}>{item.apiPath}</Tooltip>
<Tooltip placement="topLeft" arrowPointAtCenter title={item.apiPath}>{item.apiPath}</Tooltip>
</>
),
key: `${eventKey}-${index}`,
Expand Down Expand Up @@ -222,7 +222,7 @@ const SearchApi = React.forwardRef((props, ref) => {
allNodes[curNodeIdx].title = (
<>
<Text code>{Method[data.httpMethod]}</Text>
<Tooltip title={data.apiPath}>{data.apiPath}</Tooltip>
<Tooltip placement="topLeft" arrowPointAtCenter title={data.apiPath}>{data.apiPath}</Tooltip>
</>
)
}
Expand Down

0 comments on commit 40bb7d1

Please sign in to comment.