fix(ui): align contacts table-view footer with cards/list views
In table view the table is inset into its glass panel by tVpad and its outer_size is listH-2*tVpad, so the post-table cursor ended tVpad (~10px) above where the cards/list views leave it, pulling the "N address saved" footer up. Land the cursor at the glass-panel bottom (tpMin.y + listH) so the footer lines up across all three view styles. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1097,6 +1097,10 @@ void RenderContactsTab(App* app)
|
|||||||
}
|
}
|
||||||
ImGui::EndTable();
|
ImGui::EndTable();
|
||||||
}
|
}
|
||||||
|
// Land the cursor at the glass-panel bottom (tpMin.y + listH) so the count footer lines up
|
||||||
|
// with the Cards/List views. The table is inset by tVpad and its outer_size is listH-2*tVpad,
|
||||||
|
// so it would otherwise end tVpad higher and pull the footer up.
|
||||||
|
ImGui::SetCursorScreenPos(ImVec2(tpMin.x, tpMin.y + listH));
|
||||||
} else {
|
} else {
|
||||||
// ── CARDS (0) / LIST (1) mode — tactile Material items, no grid lines. ──
|
// ── CARDS (0) / LIST (1) mode — tactile Material items, no grid lines. ──
|
||||||
const bool asCard = (viewMode == 0);
|
const bool asCard = (viewMode == 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user