forked from Shinonome/dots-hyprland
ai chat: fix message not fade in until the end when there's code blocks
This commit is contained in:
@@ -271,6 +271,8 @@ Rectangle {
|
|||||||
property bool thinking: root.messageData?.thinking ?? true
|
property bool thinking: root.messageData?.thinking ?? true
|
||||||
property bool done: root.messageData?.done ?? false
|
property bool done: root.messageData?.done ?? false
|
||||||
property bool completed: thisBlock.completed ?? false
|
property bool completed: thisBlock.completed ?? false
|
||||||
|
|
||||||
|
property bool forceDisableChunkSplitting: root.messageData.content.includes("```")
|
||||||
|
|
||||||
source: thisBlock.type === "code" ? "MessageCodeBlock.qml" :
|
source: thisBlock.type === "code" ? "MessageCodeBlock.qml" :
|
||||||
thisBlock.type === "think" ? "MessageThinkBlock.qml" :
|
thisBlock.type === "think" ? "MessageThinkBlock.qml" :
|
||||||
|
|||||||
@@ -24,7 +24,8 @@ ColumnLayout {
|
|||||||
|
|
||||||
property string renderedSegmentContent: ""
|
property string renderedSegmentContent: ""
|
||||||
property string shownText: ""
|
property string shownText: ""
|
||||||
property bool fadeChunkSplitting: !editing && !/\n\|/.test(shownText) && Config.options.sidebar.ai.textFadeIn
|
property bool forceDisableChunkSplitting: parent?.forceDisableChunkSplitting ?? false
|
||||||
|
property bool fadeChunkSplitting: !forceDisableChunkSplitting && !editing && !/\n\|/.test(shownText) && Config.options.sidebar.ai.textFadeIn
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user