Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
a534d4e9
Commit
a534d4e9
authored
Nov 05, 2025
by
Eva Ho
Browse files
fixing thinking not scrolling issue
parent
74586aa9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
app/ui/app/src/components/Thinking.tsx
app/ui/app/src/components/Thinking.tsx
+6
-4
No files found.
app/ui/app/src/components/Thinking.tsx
View file @
a534d4e9
...
@@ -73,8 +73,9 @@ export default function Thinking({
...
@@ -73,8 +73,9 @@ export default function Thinking({
// Calculate max height for smooth animations
// Calculate max height for smooth animations
const
getMaxHeight
=
()
=>
{
const
getMaxHeight
=
()
=>
{
if
(
isCollapsed
)
{
if
(
isCollapsed
)
{
return
finishedThinking
?
"
0px
"
:
"
12rem
"
;
// 8rem = 128px (same as max-h-32)
return
finishedThinking
?
"
0px
"
:
"
12rem
"
;
}
}
// When expanded, use the content height or grow naturally
return
contentHeight
?
`
${
contentHeight
}
px`
:
"
none
"
;
return
contentHeight
?
`
${
contentHeight
}
px`
:
"
none
"
;
};
};
...
@@ -131,10 +132,11 @@ export default function Thinking({
...
@@ -131,10 +132,11 @@ export default function Thinking({
</
div
>
</
div
>
<
div
<
div
ref
=
{
wrapperRef
}
ref
=
{
wrapperRef
}
className
=
{
`text-xs text-neutral-500 dark:text-neutral-500 rounded-md overflow-hidden
className
=
{
`text-xs text-neutral-500 dark:text-neutral-500 rounded-md
transition-[max-height,opacity] duration-300 ease-in-out relative ml-6 mt-2`
}
transition-[max-height,opacity] duration-300 ease-in-out relative ml-6 mt-2
${
isCollapsed
?
"
overflow-hidden
"
:
"
overflow-y-auto max-h-28
"
}
`
}
style
=
{
{
style
=
{
{
maxHeight
:
getMaxHeight
(),
maxHeight
:
isCollapsed
?
getMaxHeight
()
:
undefined
,
opacity
:
isCollapsed
&&
finishedThinking
?
0
:
1
,
opacity
:
isCollapsed
&&
finishedThinking
?
0
:
1
,
}
}
}
}
>
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment