Remove explicit spacing hacks.

The new text wrapped functionality works in a way that already does this.
This commit is contained in:
Bartosz Taudul
2025-05-19 03:03:08 +02:00
parent 64c0d645ee
commit 78a80b64fa

View File

@@ -245,8 +245,6 @@ void TracyLlm::Draw()
int cacheIdx = 0;
int treeIdx = 0;
int num = 0;
bool first = true;
bool wasToolResponse = false;
for( auto& line : *m_chat )
{
const auto uw = ImGui::CalcTextSize( ICON_FA_USER ).x;
@@ -265,17 +263,6 @@ void TracyLlm::Draw()
const auto isAssistant = role == "assistant";
const auto isToolResponse = isUser && line["content"].get_ref<const std::string&>().starts_with( "<tool_output>\n" );
if( first )
{
first = false;
}
else if( !isToolResponse && !wasToolResponse )
{
ImGui::Spacing();
}
wasToolResponse = isToolResponse;
float diff, offset;
if( isToolResponse )
{