mirror of
https://github.com/openclaw/clawhub.git
synced 2026-07-22 03:35:29 -04:00
fix(ui): prevent analysis toggle when selecting summary
This commit is contained in:
@@ -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).
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user