Skip to content

Commit c67cad3

Browse files
committed
fixed code intel panel
1 parent 9315fdd commit c67cad3

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

public/output.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2314,6 +2314,9 @@
23142314
.max-h-\[calc\(100vh-6rem\)\] {
23152315
max-height: calc(100vh - 6rem);
23162316
}
2317+
.min-h-0 {
2318+
min-height: calc(var(--spacing) * 0);
2319+
}
23172320
.min-h-\[1\.5rem\] {
23182321
min-height: 1.5rem;
23192322
}

src/components/code_intel_panel.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ pub fn CodeIntelPanel(
111111
let insights_scroll_container = NodeRef::<Div>::new();
112112

113113
view! {
114-
<aside class="w-80 flex-shrink-0 bg-white/95 dark:bg-slate-950/70 text-slate-900 dark:text-slate-100 rounded-lg shadow border border-slate-200 dark:border-slate-800 p-4 sticky top-20 backdrop-blur">
114+
<aside class="w-80 flex-shrink-0 flex flex-col max-h-[calc(100vh-6rem)] bg-white/95 dark:bg-slate-950/70 text-slate-900 dark:text-slate-100 rounded-lg shadow border border-slate-200 dark:border-slate-800 p-4 sticky top-20 backdrop-blur">
115115
<h2 class="text-xl font-semibold mb-4 text-slate-900 dark:text-white">
116116
"Code Intelligence"
117117
</h2>
@@ -139,7 +139,7 @@ pub fn CodeIntelPanel(
139139
})
140140
}}
141141
</div>
142-
<div class="pr-1" node_ref=insights_scroll_container>
142+
<div class="pr-1 flex-1 min-h-0 overflow-y-auto" node_ref=insights_scroll_container>
143143
<div class="space-y-4">
144144
<div class="flex flex-col gap-1">
145145
<label class="text-xs uppercase tracking-wide text-slate-600 dark:text-slate-300">

0 commit comments

Comments
 (0)