@@ -37,6 +37,7 @@ All options are optional with sensible defaults. See below for each option in de
3737 window = {
3838 width = 0.8 , -- 0-1 (ratio); "50%" (percentage); 50 (raw number)
3939 height = 0.8 , -- 0-1 (ratio); "50%" (percentage); 50 (raw number)
40+ align = " center" , -- "center", "top-left", "top-right", "bottom-left", "bottom-right", "top", "bottom", "left", "right"
4041 relative = " editor" ,
4142 zindex = 50 ,
4243 border = " rounded" , -- "none", "single", "double", "rounded", "solid", "shadow"
@@ -196,6 +197,7 @@ Default:
196197 window = {
197198 width = 0.85 , -- 0-1 (ratio); "50%" (percentage); 50 (raw number)
198199 height = 0.85 , -- 0-1 (ratio); "50%" (percentage); 50 (raw number)
200+ align = " center" , -- "center", "top-left", "top-right", "bottom-left", "bottom-right", "top", "bottom", "left", "right"
199201 border = " rounded" , -- "none", "single", "double", "rounded", "solid", "shadow"
200202 relative = " editor" ,
201203 zindex = 50 ,
@@ -210,6 +212,11 @@ Default:
210212Controls the appearance and behavior of the MCPHub UI window:
211213- ` width ` : Window width (0-1 for ratio, "50%" for percentage, or raw number)
212214- ` height ` : Window height (same format as width)
215+ - ` align ` : Window alignment position. Options:
216+ - ` "center" ` : Center the window (default)
217+ - ` "top-left" ` , ` "top-right" ` , ` "bottom-left" ` , ` "bottom-right" ` : Corner positions
218+ - ` "top" ` , ` "bottom" ` : Top/bottom edge, centered horizontally
219+ - ` "left" ` , ` "right" ` : Left/right edge, centered vertically
213220- ` relative ` : Window placement relative to ("editor", "win", or "cursor")
214221- ` zindex ` : Window stacking order
215222- ` border ` : Border style ("none", "single", "double", "rounded", "solid", "shadow")
@@ -246,3 +253,6 @@ Logging configuration options:
246253- ` file_path ` : Custom log file path
247254- ` prefix ` : Prefix for log messages
248255
256+
257+
258+
0 commit comments