mirror of
https://github.com/wolfpld/tracy.git
synced 2026-10-17 14:25:37 +00:00
Add spacing between chat messages.
This commit is contained in:
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user