diff --git a/src/ui/pages/settings_page.cpp b/src/ui/pages/settings_page.cpp index f3827ba..8eee47e 100644 --- a/src/ui/pages/settings_page.cpp +++ b/src/ui/pages/settings_page.cpp @@ -2038,6 +2038,7 @@ void RenderSettingsPage(App* app) { ImVec4 linkHoverCol = linkCol; linkHoverCol.w = std::min(1.0f, linkCol.w + 0.2f); + float rowTopY = ImGui::GetCursorScreenPos().y; // top of the data-dir row ImGui::AlignTextToFramePadding(); ImGui::TextUnformatted(TR("settings_data_dir")); ImGui::SameLine(0, Layout::spacingXs()); @@ -2083,8 +2084,9 @@ void RenderSettingsPage(App* app) { else ImGui::TextDisabled("%s", TR("settings_not_found")); - // Open-data-folder button: right-aligned when there is room, else trailing. - float rowY = ImGui::GetCursorScreenPos().y; + // Open-data-folder button: right-aligned when there is room, else trailing — + // kept on the data-dir row (rowTopY), not the next line. + float rowY = rowTopY; float rightEdge = sectionOrigin.x + contentW; float actualOpenW = ImGui::CalcTextSize(TR("settings_open_data_dir")).x + ImGui::GetStyle().FramePadding.x * 2.0f;