Skip to content

Commit 37f4b44

Browse files
updated search text width
1 parent 6a0f8e7 commit 37f4b44

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Tetragrama/Components/ProjectViewUIComponent.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,18 @@ namespace Tetragrama::Components
6262
RenderPopUpMenu();
6363

6464
RenderBackButton();
65+
6566
ImGui::SameLine();
67+
ImGui::SetNextItemWidth(300);
6668
ImGui::InputTextWithHint("##Search", "Search ...", m_search_buffer, IM_ARRAYSIZE(m_search_buffer));
67-
ImGui::SameLine();
6869

70+
ImGui::SameLine();
6971
ImGui::PushFont(ImGui::GetIO().Fonts->Fonts[0]);
70-
7172
char relative_path[MAX_FILE_PATH_COUNT] = {0};
7273
MakeRelative(m_current_directory, m_assets_directory.parent_path(), relative_path);
7374
ImGui::Text(relative_path);
74-
7575
ImGui::PopFont();
76+
7677
ImGui::Separator();
7778

7879
RenderContentBrowser(renderer);

0 commit comments

Comments
 (0)