fix(ui): prevent analysis toggle when selecting summary

This commit is contained in:
Peter Steinberger
2026-02-15 14:41:46 +01:00
parent 8f23eb5ee8
commit 786af96fd5
3 changed files with 9 additions and 1 deletions
+1
View File
@@ -21,6 +21,7 @@
- Upload gate: fetch GitHub account age by immutable account ID (prevents username swaps) (#116) (thanks @mkrokosz).
- API: return proper status codes for delete/undelete errors (#35) (thanks @sergical).
- API: for owners, return clearer status/messages for hidden/soft-deleted skills instead of a generic 404.
- Web: allow copying OpenClaw scan summary text (thanks @borisolver, #322).
- HTTP/CORS: add preflight handler + include CORS headers on API/download errors; CLI: include auth token for owner-visible installs/updates (#146) (thanks @Grenghis-Khan).
- CLI: clarify `logout` only removes the local token; token remains valid until revoked in the web UI (#166) (thanks @aronchick).
- Skills: keep global sorting across pagination on `/skills` (thanks @CodeBBakGoSu, #98).
+6 -1
View File
@@ -139,7 +139,12 @@ function LlmAnalysisDetail({ analysis }: { analysis: LlmAnalysis }) {
<button
type="button"
className="analysis-detail-header"
onClick={() => setIsOpen((prev) => !prev)}
onClick={() => {
// Drag-select to copy summary text should not toggle open/closed.
const selection = window.getSelection()
if (selection && !selection.isCollapsed) return
setIsOpen((prev) => !prev)
}}
aria-expanded={isOpen}
>
<span className="analysis-summary-text">{analysis.summary}</span>
+2
View File
@@ -3641,6 +3641,8 @@ html.theme-transition::view-transition-new(theme) {
color: var(--ink);
line-height: 1.45;
flex: 1;
cursor: text;
user-select: text;
}
.analysis-body {