Skip to content

Commit

Permalink
宽度改变的读屏器文本
Browse files Browse the repository at this point in the history
  • Loading branch information
zetaloop committed Dec 10, 2024
1 parent 8e370f7 commit e1e3da9
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/src/ui/history/selected-commits.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ export class SelectedCommits extends React.Component<
maximumWidth={commitSummaryWidth.max}
onResize={this.onCommitSummaryResize}
onReset={this.onCommitSummaryReset}
description="Selected commit file list"
description="所选提交文件列表"
>
{this.renderFileList()}
</Resizable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export class PullRequestFilesChanged extends React.Component<
maximumWidth={fileListWidth.max}
onResize={this.onFileListResize}
onReset={this.onFileListSizeReset}
description="Pull request file list"
description="拉取请求文件列表"
>
<FileList
files={files}
Expand Down
2 changes: 1 addition & 1 deletion app/src/ui/repository.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ export class RepositoryView extends React.Component<
minimumWidth={this.props.sidebarWidth.min}
onReset={this.handleSidebarWidthReset}
onResize={this.handleSidebarResize}
description="Repository sidebar"
description="仓库侧边栏"
>
{this.renderTabs()}
{this.renderSidebarContents()}
Expand Down
4 changes: 2 additions & 2 deletions app/src/ui/resizable/resizable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,11 @@ export class Resizable extends React.Component<

private updateResizeMessage(direction: ResizeDirection) {
const directionMessage =
direction === ResizeDirection.Increase ? 'increased' : 'decreased'
direction === ResizeDirection.Increase ? '变大' : '变小'
this.setState({
resizeMessage: `${
this.props.description
} width ${directionMessage}. Set to ${this.getResizePercentage()}%`,
}的宽度${directionMessage},已设为 ${this.getResizePercentage()}%`,
})
}

Expand Down
2 changes: 1 addition & 1 deletion app/src/ui/stashing/stash-diff-viewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export class StashDiffViewer extends React.PureComponent<IStashDiffViewerProps>
maximumWidth={fileListWidth.max}
onResize={this.onResize}
onReset={this.onReset}
description="Stash file list"
description="暂存文件列表"
>
<FileList
files={files}
Expand Down
2 changes: 1 addition & 1 deletion app/src/ui/toolbar/branch-dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export class BranchDropdown extends React.Component<IBranchDropdownProps> {
onResize={this.onResize}
maximumWidth={this.props.branchDropdownWidth.max}
minimumWidth={this.props.branchDropdownWidth.min}
description="Current branch dropdown button"
description="当前分支下拉按钮"
>
<ToolbarDropdown
className="branch-button"
Expand Down
2 changes: 1 addition & 1 deletion app/src/ui/toolbar/push-pull-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ export class PushPullButton extends React.Component<
onResize={this.onResize}
maximumWidth={this.props.pushPullButtonWidth.max}
minimumWidth={this.props.pushPullButtonWidth.min}
description="Push pull button"
description="推送拉取按钮"
>
{this.renderButton()}
<span id="push-pull-button-state">
Expand Down
2 changes: 1 addition & 1 deletion app/src/ui/toolbar/revert-progress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class RevertProgress extends React.Component<IRevertProgressProps, {}> {
onResize={this.onResize}
maximumWidth={this.props.width.max}
minimumWidth={this.props.width.min}
description="Revert progress button"
description="逆转进度按钮"
>
<ToolbarButton
title="正在逆转…"
Expand Down

0 comments on commit e1e3da9

Please sign in to comment.