Compare commits

...
Author SHA1 Message Date
Peter Steinberger add8b51d5c fix(ui): make scan summary selectable 2026-02-15 14:39:00 +01:00
Borisolver 9e33607629 UI: allow copying security scan summary text 2026-02-15 11:43:59 +01:00
2 changed files with 9 additions and 1 deletions
+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>
+3
View File
@@ -3625,6 +3625,7 @@ html.theme-transition::view-transition-new(theme) {
align-items: center;
gap: 4px;
white-space: nowrap;
user-select: none;
}
.analysis-detail-toggle .chevron {
@@ -3640,6 +3641,8 @@ html.theme-transition::view-transition-new(theme) {
color: var(--ink);
line-height: 1.45;
flex: 1;
user-select: text;
cursor: text;
}
.analysis-body {