History

fix: make tool signature panel scrollable when content is long

Saatvik Arya committed 7 months ago

Commit a913f001 parent 20557f61 file · +1 −1Browse files

Unified · Split

apps/web/src/views/source-detail.tsx+1−1
@@ -804,7 +804,7 @@ function ToolDetailPanel(props: { detail: SourceInspectionToolDetail }) { · 803 unmodified lines
804804 <div className="mb-1 text-[10px] font-medium uppercase tracking-wider text-muted-foreground/60">
805805 TypeScript Signature
806806 </div>
807− <pre className="overflow-x-auto whitespace-pre-wrap font-mono text-[12px] text-foreground">
807+ <pre className="max-h-40 overflow-auto whitespace-pre-wrap font-mono text-[12px] text-foreground">
808808 {detail.contract.callDeclaration}
809809 </pre>
810810 </div>