You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by wy...@apache.org on 2026/10/22 09:51:36 UTC
(maka) 12/22: Give image control captions an explicit text return type
This is an automated email from the ASF dual-hosted git repository.
M4n5ter pushed a commit to branch rust-preview
in repository https://gitbox.apache.org/repos/asf/maka.git
commit e482d30bbbb9ad1c9f6d9cc3bfbeaed9f9f69095
Author: M4n5ter <m4...@gmail.com>
AuthorDate: Thu Oct 22 17:00:01 2026 +0800
Give image control captions an explicit text return type
---
products/maka/terminal-shell/app/ImageViewer.tsx | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/products/maka/terminal-shell/app/ImageViewer.tsx b/products/maka/terminal-shell/app/ImageViewer.tsx
index c0d904ff76..cc2bb60730 100644
--- a/products/maka/terminal-shell/app/ImageViewer.tsx
+++ b/products/maka/terminal-shell/app/ImageViewer.tsx
@@ -229,15 +229,23 @@ export function ImageViewer(props: { image: ViewerImage; close(): void }) {
{
kind: 'fit' as const,
label: () => tr('Fit image to window'),
- caption: () => tr('Fit'),
+ caption: (): string => tr('Fit'),
},
{
kind: 'actual' as const,
label: () => tr('Show image at actual size'),
- caption: () => '100%',
+ caption: (): string => '100%',
+ },
+ {
+ kind: 'out' as const,
+ label: () => tr('Zoom image out'),
+ caption: (): string => '−',
+ },
+ {
+ kind: 'in' as const,
+ label: () => tr('Zoom image in'),
+ caption: (): string => '+',
},
- { kind: 'out' as const, label: () => tr('Zoom image out'), caption: () => '−' },
- { kind: 'in' as const, label: () => tr('Zoom image in'), caption: () => '+' },
]}
key={(item) => item.kind}
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org