[fix] align recent connection name footer

This commit is contained in:
dijunkun
2026-06-18 10:53:31 +08:00
parent 3d280053a7
commit 3677588a3d
+1 -4
View File
@@ -164,15 +164,12 @@ int Render::ShowRecentConnections() {
std::string display_name = GetRecentConnectionDisplayName(it.second); std::string display_name = GetRecentConnectionDisplayName(it.second);
bool online = device_presence_.IsOnline(it.second.remote_id); 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 image_pos =
ImVec2(ImGui::GetCursorPosX() + recent_connection_image_width * 0.05f, ImVec2(ImGui::GetCursorPosX() + recent_connection_image_width * 0.05f,
ImGui::GetCursorPosY() + recent_connection_image_height * 0.08f); ImGui::GetCursorPosY() + recent_connection_image_height * 0.08f);
ImGui::SetCursorPos(image_pos); ImGui::SetCursorPos(image_pos);
ImVec2 image_screen_pos = ImGui::GetCursorScreenPos();
ImGui::Image( ImGui::Image(
(ImTextureID)(intptr_t)it.second.texture, (ImTextureID)(intptr_t)it.second.texture,
ImVec2(recent_connection_image_width, recent_connection_image_height)); ImVec2(recent_connection_image_width, recent_connection_image_height));