From 7bda9870704d9ac6f6769f6062e97b52777adea4 Mon Sep 17 00:00:00 2001 From: abose Date: Sat, 21 Mar 2026 13:10:05 +0530 Subject: [PATCH 1/3] feat(ai-chat): flash keyboard shortcut hints on textarea focus MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Show "Press Enter to send · Shift+Enter for new line" with styled kbd elements in the permission bar when the chat textarea receives focus. Hint fades in and auto-dismisses after 4 seconds, restoring the permission mode info text. Renamed .ai-permission-info to .ai-info and added min-height to prevent layout shift from kbd elements. --- src/nls/root/strings.js | 1 + src/styles/Extn-AIChatPanel.less | 30 +++++++++++++++++++++++++++--- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/src/nls/root/strings.js b/src/nls/root/strings.js index a54cf81b7f..bf1a747703 100644 --- a/src/nls/root/strings.js +++ b/src/nls/root/strings.js @@ -2086,6 +2086,7 @@ define({ "AI_CHAT_MODE_INFO_EDIT": "AI can edit files. Shell commands need approval", "AI_CHAT_MODE_INFO_FULL_AUTO": "AI can edit files and run commands without approval", "AI_CHAT_MODE_SWITCH_HINT": "(Shift+Tab to switch)", + "AI_CHAT_INPUT_HINT": "Press {0} to send · {1} for new line", "AI_CHAT_BASH_CONFIRM_TITLE": "Allow command?", "AI_CHAT_BASH_ALLOW": "Allow", "AI_CHAT_BASH_DENY": "Deny", diff --git a/src/styles/Extn-AIChatPanel.less b/src/styles/Extn-AIChatPanel.less index 50a14ed221..c43f78b7ee 100644 --- a/src/styles/Extn-AIChatPanel.less +++ b/src/styles/Extn-AIChatPanel.less @@ -1717,7 +1717,8 @@ display: flex; align-items: center; gap: 6px; - padding: 4px 8px; + padding: 6px 8px 0 8px; + min-height: 18px; cursor: pointer; user-select: none; @@ -1751,7 +1752,7 @@ line-height: 1; } - .ai-permission-info { + .ai-info { display: none; margin-left: auto; font-size: 11px; @@ -1761,13 +1762,36 @@ overflow: hidden; text-overflow: ellipsis; color: @project-panel-text-2; + transition: opacity 0.3s ease; + + kbd { + display: inline-block; + padding: 1px 5px; + font-size: 10px; + font-family: inherit; + line-height: 1.2; + color: @project-panel-text-1; + background: rgba(255, 255, 255, 0.1); + border: 1px solid rgba(255, 255, 255, 0.15); + border-radius: 3px; + } + + &.ai-info-flash { + display: inline; + animation: ai-info-flash-in 0.3s ease; + } } - &:hover .ai-permission-info { + &:hover .ai-info { display: inline; } } + @keyframes ai-info-flash-in { + from { opacity: 0; } + to { opacity: 1; } + } + .ai-chat-context-bar { display: none; flex-wrap: wrap; From 4d9a34c773061e81d3695089e54ed9d047d6eff9 Mon Sep 17 00:00:00 2001 From: abose Date: Sat, 21 Mar 2026 13:23:34 +0530 Subject: [PATCH 2/3] fix(live-preview): normalize toolbar button vertical alignment Remove inconsistent margin-top values (3.5px/3.3px) from live preview toolbar buttons and replace with margin-top: 0 for consistent alignment. --- .../Phoenix-live-preview/live-preview.css | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/extensionsIntegrated/Phoenix-live-preview/live-preview.css b/src/extensionsIntegrated/Phoenix-live-preview/live-preview.css index 9847eb1931..6641e9d4aa 100644 --- a/src/extensionsIntegrated/Phoenix-live-preview/live-preview.css +++ b/src/extensionsIntegrated/Phoenix-live-preview/live-preview.css @@ -100,14 +100,14 @@ height: 22px; padding: 1px 6px; flex-shrink: 0; - margin-top: 3.5px; + margin-top: 0; } .lp-device-size-icon { min-width: fit-content; display: flex; align-items: center; - margin: 3.5px 4px 0 3px; + margin: 0 4px 0 3px; cursor: pointer; background: transparent; box-shadow: none; @@ -165,7 +165,7 @@ min-width: fit-content; display: flex; align-items: center; - margin: 3.5px 4px 0 3px; + margin: 0 4px 0 3px; max-width: 80%; text-overflow: ellipsis; overflow: hidden; @@ -197,7 +197,7 @@ #reloadLivePreviewButton { margin-left: 3px; - margin-top: 3.5px; + margin-top: 0; width: 30px; height: 22px; flex-shrink: 0; @@ -206,7 +206,7 @@ #previewModeLivePreviewButton { color: #a0a0a0; margin-left: 3px; - margin-top: 3.3px; + margin-top: 0; width: 30px; height: 22px; flex-shrink: 0; From 43ad21db032e282584e760efca009af6929258c6 Mon Sep 17 00:00:00 2001 From: abose Date: Sat, 21 Mar 2026 14:06:35 +0530 Subject: [PATCH 3/3] build: update pro deps --- tracking-repos.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracking-repos.json b/tracking-repos.json index ed880098d3..7cee151d68 100644 --- a/tracking-repos.json +++ b/tracking-repos.json @@ -1,5 +1,5 @@ { "phoenixPro": { - "commitID": "69b8d0160b40bbcc89f454498ef30115a018c3e9" + "commitID": "4b7f18af0837e289a48e6064ef884f66397b5f61" } }