mirror of
https://github.com/felixangell/phi.git
synced 2024-10-05 20:27:17 +03:00
resized the command palette so that the height is relative to the font size
This commit is contained in:
parent
55bd38f041
commit
d36ac61a74
@ -124,7 +124,10 @@ func NewCommandPalette(conf cfg.TomlConfig, view *BufferView) *CommandPalette {
|
||||
|
||||
vW, _ := view.GetSize()
|
||||
|
||||
palette.Resize(vW/3, 48)
|
||||
// set the palette to be 1/3rd of the size of the view
|
||||
palette.Resize(vW/3, int(float64(newSize)*1.5))
|
||||
|
||||
// translate it to the centre of the view.
|
||||
pW, pH := palette.GetSize()
|
||||
|
||||
palette.Translate((vW/2)-(pW/2), 10)
|
||||
|
Loading…
Reference in New Issue
Block a user