You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b7e49dd
Browse filesBrowse the repository at this point in the historyBrowse files
authored
feat: add configurable preview position (right/bottom/left/top) (#18)
* feat: add configurable preview position (right/bottom/left/top)
Add preview_position config setting to control where the session detail
panel displays. Users can set it in config.json or cycle through positions
at runtime with the P key (persisted automatically).
- Add PreviewPosition field to Config with EffectivePreviewPosition()
- Update recalcLayout/renderMainView for horizontal and vertical splits
- Add PreviewHeightRatio/PreviewMinHeight style constants
- Add P keybinding to cycle positions with auto-persist
- Add preview position to Settings panel (config panel cycling)
- Add isOverPreview() for position-aware mouse hit detection
- Add comprehensive tests: config, configpanel, layout, mouse, keybinding
Closes#17
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* refactor: extract layout.go and remove layout dimension duplication
Move recalcLayout() and layout helpers to internal/tui/layout.go.
Store computed layout dimensions on model struct so renderMainView()
reads pre-computed values instead of recomputing independently.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* docs: add preview position to README, web docs, and screenshots
Document P key binding for cycling preview positions (right/bottom/
left/top). Add screenshot captures for all 4 positions. Update
features.astro, config.astro, and keys.astro.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: address preflight issues
Convert if/else chain on previewPosition to tagged switch (staticcheck QF1003).
Align struct field formatting (gofumpt).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* docs: add Carousel component and regenerate screenshots
Add a reusable Carousel.astro component for cycling through
screenshots one at a time with prev/next arrows and dot indicators.
Wrap the Preview Position screenshots in the carousel. Regenerate
all 180 screenshots across 5 themes.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Jon Gallant <2163001+jongio@users.noreply.github.com>
0 commit comments