Skip to content

Commit

Permalink
优化拖放提示
Browse files Browse the repository at this point in the history
  • Loading branch information
zetaloop committed Feb 6, 2025
1 parent 759fe4c commit c12a3e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/src/ui/branches/branches-container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ export class BranchesContainer extends React.Component<
// Thus, it doesn't have to be an actual branch name.
dragAndDropManager.emitEnterDropTarget({
type: DropTargetType.Branch,
branchName: 'a new branch',
branchName: '新分支',
})
}

Expand Down
4 changes: 2 additions & 2 deletions app/src/ui/drag-elements/commit-drag-element.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class CommitDragElement extends React.Component<
<>
{copyToPlus}
<span>
<span className="copy-to">复制到</span>
<span className="copy-to">摘取到</span>
<span className="branch-name">
{currentDropTarget.branchName}
</span>
Expand Down Expand Up @@ -114,7 +114,7 @@ export class CommitDragElement extends React.Component<
}

const pluralized =
currentDropTarget.data.commits.length === 1 ? '提交' : '提交'
currentDropTarget.data.commits.length === 1 ? '这个提交' : '这些提交'
toolTipContents = (
<>
<span>{`移动${pluralized}到此处`}</span>
Expand Down

0 comments on commit c12a3e1

Please sign in to comment.