From 3677588a3d4e95aeff4d7c56dcf7cd94557df67d Mon Sep 17 00:00:00 2001 From: dijunkun Date: Thu, 18 Jun 2026 10:53:31 +0800 Subject: [PATCH] [fix] align recent connection name footer --- src/gui/panels/recent_connections_panel.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/gui/panels/recent_connections_panel.cpp b/src/gui/panels/recent_connections_panel.cpp index 851015e..85b61ee 100644 --- a/src/gui/panels/recent_connections_panel.cpp +++ b/src/gui/panels/recent_connections_panel.cpp @@ -164,15 +164,12 @@ int Render::ShowRecentConnections() { std::string display_name = GetRecentConnectionDisplayName(it.second); bool online = device_presence_.IsOnline(it.second.remote_id); - ImVec2 image_screen_pos = ImVec2( - ImGui::GetCursorScreenPos().x + recent_connection_image_width * 0.04f, - ImGui::GetCursorScreenPos().y + recent_connection_image_height * 0.08f); - ImVec2 image_pos = ImVec2(ImGui::GetCursorPosX() + recent_connection_image_width * 0.05f, ImGui::GetCursorPosY() + recent_connection_image_height * 0.08f); ImGui::SetCursorPos(image_pos); + ImVec2 image_screen_pos = ImGui::GetCursorScreenPos(); ImGui::Image( (ImTextureID)(intptr_t)it.second.texture, ImVec2(recent_connection_image_width, recent_connection_image_height));