From be86c11e740f45870a9d2407ae261773040f8ac0 Mon Sep 17 00:00:00 2001 From: syui Date: Sun, 15 Jun 2025 22:34:44 +0900 Subject: [PATCH] fix comment-tab --- my-blog/static/index.html | 4 ++-- my-blog/static/js/ask-ai.js | 4 ++-- my-blog/templates/oauth-assets.html | 4 ++-- oauth/src/App.css | 4 ++++ oauth/src/App.tsx | 5 ++--- 5 files changed, 12 insertions(+), 9 deletions(-) diff --git a/my-blog/static/index.html b/my-blog/static/index.html index dc3a9fe..bd1f9d0 100644 --- a/my-blog/static/index.html +++ b/my-blog/static/index.html @@ -1,3 +1,3 @@ - - \ No newline at end of file + + \ No newline at end of file diff --git a/my-blog/static/js/ask-ai.js b/my-blog/static/js/ask-ai.js index ca3fb78..a562eac 100644 --- a/my-blog/static/js/ask-ai.js +++ b/my-blog/static/js/ask-ai.js @@ -262,8 +262,8 @@ function setupAskAIEventListeners() { } } - // Enter key to send message - if (e.key === 'Enter' && e.target.id === 'aiQuestion' && !e.shiftKey) { + // Enter key to send message (only when not composing Japanese input) + if (e.key === 'Enter' && e.target.id === 'aiQuestion' && !e.shiftKey && !e.isComposing) { e.preventDefault(); askQuestion(); } diff --git a/my-blog/templates/oauth-assets.html b/my-blog/templates/oauth-assets.html index dc3a9fe..bd1f9d0 100644 --- a/my-blog/templates/oauth-assets.html +++ b/my-blog/templates/oauth-assets.html @@ -1,3 +1,3 @@ - - \ No newline at end of file + + \ No newline at end of file diff --git a/oauth/src/App.css b/oauth/src/App.css index d3c1954..80ba77f 100644 --- a/oauth/src/App.css +++ b/oauth/src/App.css @@ -909,4 +909,8 @@ padding: 40px 20px; color: #656d76; font-style: italic; +} + +.chat-message.comment-style { + border-left: 4px solid var(--theme-color); } \ No newline at end of file diff --git a/oauth/src/App.tsx b/oauth/src/App.tsx index 256447c..3cab931 100644 --- a/oauth/src/App.tsx +++ b/oauth/src/App.tsx @@ -1493,10 +1493,9 @@ function App() { )} - {/* Comment Form - Only show on post pages */} - {user && appConfig.rkey && ( + {/* Comment Form - Only show on post pages when Comments tab is active */} + {user && appConfig.rkey && activeTab === 'comments' && (
-

Post a Comment