Fix scrolling buttopn and autoscrolling
This commit is contained in:
@@ -380,7 +380,9 @@ export default function MessageStream(props: MessageStreamProps) {
|
|||||||
|
|
||||||
const toolSignature = createToolSignature(message, toolPart, originalIndex, messageInfo)
|
const toolSignature = createToolSignature(message, toolPart, originalIndex, messageInfo)
|
||||||
const contentKey = createToolContentKey(toolPart, messageInfo)
|
const contentKey = createToolContentKey(toolPart, messageInfo)
|
||||||
|
tokenSegments.push(`tool:${toolKey}:${partVersion}`)
|
||||||
const toolEntry = toolItemCache.get(toolKey)
|
const toolEntry = toolItemCache.get(toolKey)
|
||||||
|
|
||||||
if (toolEntry && toolEntry.signature === toolSignature) {
|
if (toolEntry && toolEntry.signature === toolSignature) {
|
||||||
if (toolEntry.contentKey !== contentKey) {
|
if (toolEntry.contentKey !== contentKey) {
|
||||||
const updatedItem: ToolDisplayItem = {
|
const updatedItem: ToolDisplayItem = {
|
||||||
|
|||||||
@@ -696,7 +696,7 @@ button.button-primary:disabled {
|
|||||||
height: 2.75rem;
|
height: 2.75rem;
|
||||||
border-radius: 9999px;
|
border-radius: 9999px;
|
||||||
border: 1px solid var(--border-base);
|
border: 1px solid var(--border-base);
|
||||||
background-color: var(--surface-secondary);
|
background-color: transparent;
|
||||||
color: var(--text-primary);
|
color: var(--text-primary);
|
||||||
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
|
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
|
||||||
transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
|
transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
|
||||||
|
|||||||
Reference in New Issue
Block a user