impr: Properly align buttons in pattern data view

This commit is contained in:
WerWolv 2025-09-08 19:52:12 +02:00
parent b039bc14c6
commit a0326c4371
1 changed files with 2 additions and 1 deletions

View File

@ -1197,7 +1197,8 @@ namespace hex::ui {
this->resetEditing();
}
ImGui::PushItemWidth(-(ImGui::GetTextLineHeightWithSpacing() * 8));
auto &style = ImGui::GetStyle();
ImGui::PushItemWidth(-(style.ItemSpacing.x * 2 + style.WindowPadding.x * 2 + ImGui::GetTextLineHeightWithSpacing() * 5 + 15_scaled));
if (ImGuiExt::InputTextIcon("##Search", ICON_VS_FILTER, m_filterText)) {
m_filter = parseRValueFilter(m_filterText).value_or(Filter{ });
updateFilter();