fix(ui): add vertical padding above and below the recent-alerts popup content
The alert-history popup content sat flush against the popup's top and bottom edges. Add a padY spacer above the header and below the content (on both the empty and populated paths). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -2293,10 +2293,13 @@ void App::renderAlertHistoryPanel()
|
|||||||
const auto& hist = notes.history();
|
const auto& hist = notes.history();
|
||||||
const float innerW = ImGui::GetContentRegionAvail().x;
|
const float innerW = ImGui::GetContentRegionAvail().x;
|
||||||
const float padX = 8.0f * dp;
|
const float padX = 8.0f * dp;
|
||||||
|
const float padY = 8.0f * dp;
|
||||||
|
|
||||||
ImFont* icoF = m::Type().iconSmall();
|
ImFont* icoF = m::Type().iconSmall();
|
||||||
ImFont* txtF = m::Type().caption();
|
ImFont* txtF = m::Type().caption();
|
||||||
|
|
||||||
|
ImGui::Dummy(ImVec2(0.0f, padY)); // breathing room above the content
|
||||||
|
|
||||||
// Header: "Recent alerts" on the left, a Clear-all icon button on the right.
|
// Header: "Recent alerts" on the left, a Clear-all icon button on the right.
|
||||||
ImGui::SetCursorPosX(padX);
|
ImGui::SetCursorPosX(padX);
|
||||||
ImGui::PushFont(txtF);
|
ImGui::PushFont(txtF);
|
||||||
@@ -2325,6 +2328,7 @@ void App::renderAlertHistoryPanel()
|
|||||||
ImGui::PushFont(txtF);
|
ImGui::PushFont(txtF);
|
||||||
ImGui::TextDisabled("%s", TR("alerts_none"));
|
ImGui::TextDisabled("%s", TR("alerts_none"));
|
||||||
ImGui::PopFont();
|
ImGui::PopFont();
|
||||||
|
ImGui::Dummy(ImVec2(0.0f, padY)); // breathing room below the content
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2369,6 +2373,7 @@ void App::renderAlertHistoryPanel()
|
|||||||
ImGui::Spacing();
|
ImGui::Spacing();
|
||||||
}
|
}
|
||||||
ImGui::EndChild();
|
ImGui::EndChild();
|
||||||
|
ImGui::Dummy(ImVec2(0.0f, padY)); // breathing room below the content
|
||||||
}
|
}
|
||||||
|
|
||||||
void App::renderStatusBar()
|
void App::renderStatusBar()
|
||||||
|
|||||||
Reference in New Issue
Block a user