From 74b6e481bbe1e0e4434cceaca6bfc0a933f026d9 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 13 May 2025 19:07:01 +0200 Subject: [PATCH] Add spacing between chat messages. --- profiler/src/profiler/TracyLlm.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/profiler/src/profiler/TracyLlm.cpp b/profiler/src/profiler/TracyLlm.cpp index cc3d979f..f47b5eb9 100644 --- a/profiler/src/profiler/TracyLlm.cpp +++ b/profiler/src/profiler/TracyLlm.cpp @@ -178,6 +178,7 @@ void TracyLlm::Draw() { int idx = 0; int num = 0; + bool first = true; for( auto& line : *m_chat ) { const auto uw = ImGui::CalcTextSize( ICON_FA_USER ).x; @@ -194,6 +195,15 @@ void TracyLlm::Draw() const auto isError = role == "error"; const auto isAssistant = role == "assistant"; + if( first ) + { + first = false; + } + else + { + ImGui::Spacing(); + } + float diff, offset; if( isUser ) {