diff options
| author | adamdottv <[email protected]> | 2025-06-13 11:18:46 -0500 |
|---|---|---|
| committer | adamdottv <[email protected]> | 2025-06-13 11:18:46 -0500 |
| commit | 61396b93edd8e93ad45503ca785f94314d9cd4b5 (patch) | |
| tree | 91b1db1d11712e212b1ecfa96880a1a3269131ad /packages/tui/internal/page | |
| parent | 62b9a30a9c70bd48768055f0049400d27a849c3e (diff) | |
| download | opencode-61396b93edd8e93ad45503ca785f94314d9cd4b5.tar.gz opencode-61396b93edd8e93ad45503ca785f94314d9cd4b5.zip | |
wip: refactoring tui
Diffstat (limited to 'packages/tui/internal/page')
| -rw-r--r-- | packages/tui/internal/page/chat.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/packages/tui/internal/page/chat.go b/packages/tui/internal/page/chat.go index ee8b9ed00..a26fa3a64 100644 --- a/packages/tui/internal/page/chat.go +++ b/packages/tui/internal/page/chat.go @@ -130,17 +130,16 @@ func (p *chatPage) GetSize() (int, int) { func (p *chatPage) View() string { layoutView := p.layout.View() - // TODO: Fix this with our new layout if p.showCompletionDialog { - _, layoutHeight := p.layout.GetSize() - editorWidth, editorHeight := p.editor.GetSize() + editorWidth, _ := p.editor.GetSize() + editorX, editorY := p.editor.GetPosition() p.completionDialog.SetWidth(editorWidth) overlay := p.completionDialog.View() layoutView = layout.PlaceOverlay( - 0, - layoutHeight-editorHeight-lipgloss.Height(overlay), + editorX, + editorY-lipgloss.Height(overlay)+1, overlay, layoutView, ) |
