Fix code block clashes.

This commit is contained in:
Bartosz Taudul
2025-06-05 02:11:39 +02:00
parent fde94e10d4
commit 5778c5ef9f
2 changed files with 5 additions and 0 deletions

View File

@@ -317,6 +317,7 @@ void TracyLlmChat::Begin()
m_thinkOpen = false;
m_thinkIdx = 0;
m_subIdx = 0;
m_roleIdx = 0;
}
void TracyLlmChat::End()
@@ -325,6 +326,7 @@ void TracyLlmChat::End()
{
NormalScope();
ImGui::EndGroup();
ImGui::PopID();
}
}
@@ -337,6 +339,7 @@ void TracyLlmChat::Turn( TurnRole role, const std::string& content )
{
NormalScope();
ImGui::EndGroup();
ImGui::PopID();
}
m_role = role;
m_thinkActive = false;
@@ -345,6 +348,7 @@ void TracyLlmChat::Turn( TurnRole role, const std::string& content )
const auto diff = m_maxWidth - m_width[(int)role];
const auto offset = diff / 2;
ImGui::Spacing();
ImGui::PushID( m_roleIdx++ );
ImGui::Dummy( ImVec2( offset, 0 ) );
ImGui::SameLine( 0, 0 );
ImGui::TextColored( roleData.iconColor, "%s", roleData.icon );

View File

@@ -47,6 +47,7 @@ private:
bool m_thinkOpen;
int m_thinkIdx;
int m_subIdx;
int m_roleIdx;
MD_PARSER* m_parser;
};