diff --git a/src/ui/gitree_ui.cpp b/src/ui/gitree_ui.cpp index 61d2da0..f9fe8ec 100644 --- a/src/ui/gitree_ui.cpp +++ b/src/ui/gitree_ui.cpp @@ -131,8 +131,8 @@ enum class ToolbarActionRequest { none, pull, push }; ToolbarActionRequest g_pending_toolbar_action = ToolbarActionRequest::none; ToolbarActionRequest g_running_toolbar_action = ToolbarActionRequest::none; using RefreshClock = std::chrono::steady_clock; -constexpr auto active_refresh_interval = std::chrono::seconds(2); -constexpr auto background_refresh_interval = std::chrono::seconds(5); +constexpr auto active_refresh_interval = std::chrono::milliseconds(500); +constexpr auto background_refresh_interval = std::chrono::milliseconds(1500); enum class GitAsyncOperation { reload, capture, pull, push, checkout_branch, push_branch, fetch, stash, pop_stash }; @@ -2076,8 +2076,8 @@ void draw_commit_table() { const ImVec2 position = ImGui::GetCursorScreenPos(); ImDrawList* draw = ImGui::GetWindowDrawList(); const int first_lane = repo().commits.empty() ? 0 : repo().commits.front().lane; - const float lane_x = position.x + ui(17.0f) + ui(22.0f) * first_lane; - const ImVec2 center{lane_x + ui(22.0f), position.y + ui(10.0f)}; + const float lane_x = position.x + ui(17.0f) + ui(28.0f) * first_lane; + const ImVec2 center{lane_x, position.y + ui(12.0f)}; if (!repo().commits.empty()) { const float next_center_y = position.y + ui(24.0f) + std::max(ui(1.0f), row_heights.front() - ImGui::GetStyle().CellPadding.y * 2.0f) * 0.5f;