Skip to content

Commit c9665a4

Browse files
committed
Better alignment
1 parent 976a0de commit c9665a4

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/main/kotlin/com/lambda/gui/components/QuickSearch.kt

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,13 @@ object QuickSearch {
7575
override val breadcrumb = "Module"
7676

7777
override fun ImGuiBuilder.buildLayout() {
78-
with(ModuleEntry(module)) { buildLayout() }
78+
with(ModuleEntry(module)) {
79+
buildLayout {
80+
withItemWidth(ImGui.getContentRegionAvailX()) {
81+
buildLayout()
82+
}
83+
}
84+
}
7985
}
8086
}
8187

@@ -96,7 +102,13 @@ object QuickSearch {
96102
override val breadcrumb: String by lazy { buildSettingBreadcrumb(configurable.name, setting) }
97103

98104
override fun ImGuiBuilder.buildLayout() {
99-
with(setting) { buildLayout() }
105+
with(setting) {
106+
buildLayout {
107+
withItemWidth(ImGui.getContentRegionAvailX()) {
108+
buildLayout()
109+
}
110+
}
111+
}
100112
}
101113
}
102114

0 commit comments

Comments
 (0)