Bot settings: a short hint keeps the computer row inside its card

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
王性驊 2026-11-05 16:49:39 +08:00
parent 3132f8ce91
commit 6b0a0babf1
2 changed files with 4 additions and 4 deletions

View File

@ -2795,7 +2795,7 @@ impl App {
if let Some(n) = pick { if let Some(n) = pick {
b.default_computer = Self::computer_to_keep(&b, &n); b.default_computer = Self::computer_to_keep(&b, &n);
} }
ui.label(RichText::new(t("聊天時指名另一台(例如「在 Mac mini 上」)就會換")).size(11.5).color(p.text3)); ui.label(RichText::new(t("聊天時指名別台就會換")).size(11.5).color(p.text3));
}); });
form_row(ui, "起始資料夾", p, |ui| { form_row(ui, "起始資料夾", p, |ui| {
ui.add(egui::TextEdit::singleline(&mut b.workdir).hint_text(t("在你的電腦上,例如 ~/Documents/專案")).desired_width(ui.available_width())); ui.add(egui::TextEdit::singleline(&mut b.workdir).hint_text(t("在你的電腦上,例如 ~/Documents/專案")).desired_width(ui.available_width()));
@ -2809,7 +2809,7 @@ impl App {
ui.label(RichText::new(t("用到 70% 時會把舊對話整理成摘要")).size(11.5).color(p.text3)); ui.label(RichText::new(t("用到 70% 時會把舊對話整理成摘要")).size(11.5).color(p.text3));
}); });
ui.add_space(2.0); ui.add_space(2.0);
hint(ui, "在 Bot 的電腦上可以自由做事(看不到你的檔案);在你的電腦上,改檔案和會改變東西的指令會先問你。密碼和金鑰檔一律不碰。", p); hint(ui, "在它自己的電腦上可以自由做事(看不到你的檔案);在你的電腦上,改檔案和會改變東西的指令會先問你。密碼和金鑰檔一律不碰。", p);
if !b.allow_rules.is_empty() { if !b.allow_rules.is_empty() {
ui.add_space(6.0); ui.add_space(6.0);
ui.label(RichText::new(t("已設定「一律允許」")).size(FONT_XS).color(p.text2)); ui.label(RichText::new(t("已設定「一律允許」")).size(FONT_XS).color(p.text2));

View File

@ -119,7 +119,7 @@ pub const ROWS: &[(&str, &str, &str)] = &[
("連接器", "Connectors", "コネクタ"), ("連接器", "Connectors", "コネクタ"),
("例如:「每個工作日早上 9 點整理新聞給我」", "e.g. “Every weekday at 9 am, send me a news summary”", "例:「平日の毎朝 9 時にニュースをまとめて」"), ("例如:「每個工作日早上 9 點整理新聞給我」", "e.g. “Every weekday at 9 am, send me a news summary”", "例:「平日の毎朝 9 時にニュースをまとめて」"),
("要新增或修改,直接在聊天裡告訴 Bot。", "To add or change one, just tell the bot in the chat.", "追加や変更は、チャットで Bot に伝えるだけです。"), ("要新增或修改,直接在聊天裡告訴 Bot。", "To add or change one, just tell the bot in the chat.", "追加や変更は、チャットで Bot に伝えるだけです。"),
("在 Bot 的電腦上可以自由做事(看不到你的檔案);在你的電腦上,改檔案和會改變東西的指令會先問你。密碼和金鑰檔一律不碰。", "On the bot's computer it can work freely (it can't see your files); on your computer, changing files and commands that change things ask you first. Password and key files are never touched.", "Bot のコンピューターでは自由に作業できます(あなたのファイルは見えません)。あなたのコンピューターでは、ファイルの変更や変更を伴うコマンドは先に確認します。パスワードや鍵のファイルには一切触れません。"), ("在它自己的電腦上可以自由做事(看不到你的檔案);在你的電腦上,改檔案和會改變東西的指令會先問你。密碼和金鑰檔一律不碰。", "On the bot's computer it can work freely (it can't see your files); on your computer, changing files and commands that change things ask you first. Password and key files are never touched.", "Bot のコンピューターでは自由に作業できます(あなたのファイルは見えません)。あなたのコンピューターでは、ファイルの変更や変更を伴うコマンドは先に確認します。パスワードや鍵のファイルには一切触れません。"),
("還沒有。跟 Bot 說「記住我喜歡靠窗的座位」試試看。", "Nothing yet. Try telling the bot “remember I like window seats”.", "まだありません。Bot に「窓側の席が好きだと覚えて」と言ってみてください。"), ("還沒有。跟 Bot 說「記住我喜歡靠窗的座位」試試看。", "Nothing yet. Try telling the bot “remember I like window seats”.", "まだありません。Bot に「窓側の席が好きだと覚えて」と言ってみてください。"),
("選單會用英文顯示;Bot 會用你選的語言回答。", "Menus are shown in English; bots answer in the language you chose.", "メニューは英語で表示されます。Bot は選んだ言語で答えます。"), ("選單會用英文顯示;Bot 會用你選的語言回答。", "Menus are shown in English; bots answer in the language you chose.", "メニューは英語で表示されます。Bot は選んだ言語で答えます。"),
("視窗不在最前面,或 90 秒沒有動鍵盤滑鼠,就會通知。登入帳號後也會推播到手機。", "You're notified when the window isn't in front, or after 90 s without keyboard or mouse. Once signed in, your phone is notified too.", "ウィンドウが前面にないとき、または 90 秒間操作がないときに通知します。ログインするとスマホにも通知されます。"), ("視窗不在最前面,或 90 秒沒有動鍵盤滑鼠,就會通知。登入帳號後也會推播到手機。", "You're notified when the window isn't in front, or after 90 s without keyboard or mouse. Once signed in, your phone is notified too.", "ウィンドウが前面にないとき、または 90 秒間操作がないときに通知します。ログインするとスマホにも通知されます。"),
@ -609,7 +609,7 @@ pub const ROWS: &[(&str, &str, &str)] = &[
("大腦所在的伺服器", "the brain's server", "ブレインのサーバー"), ("大腦所在的伺服器", "the brain's server", "ブレインのサーバー"),
("SSH 電腦", "SSH computer", "SSH コンピューター"), ("SSH 電腦", "SSH computer", "SSH コンピューター"),
("做事的電腦", "Works on", "作業するコンピューター"), ("做事的電腦", "Works on", "作業するコンピューター"),
("聊天時指名另一台(例如「在 Mac mini 上」)就會換", "Name another one in the chat (e.g. “on the Mac mini”) to switch", "チャットで別のコンピューターを指名すると切り替わります(例:「Mac mini で」)"), ("聊天時指名別台就會換", "Name another in the chat to switch", "チャットで別の名前を言うと切り替わります"),
("正在「{name}」上工作", "Working on “{name}”", "「{name}」で作業中"), ("正在「{name}」上工作", "Working on “{name}”", "「{name}」で作業中"),
("在「{name}」上做事 · 點一下換電腦", "Works on “{name}” · click to switch computers", "「{name}」で作業 · クリックで切り替え"), ("在「{name}」上做事 · 點一下換電腦", "Works on “{name}” · click to switch computers", "「{name}」で作業 · クリックで切り替え"),
]; ];