Show posters as real images in kitty and Ghostty (Kitty graphics with Unicode placeholders)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -43,7 +43,7 @@ func newDetailPane(app *App) *detailPane {
|
||||
Flex: tview.NewFlex(),
|
||||
app: app,
|
||||
text: tview.NewTextView().SetDynamicColors(true).SetWrap(false),
|
||||
cover: newCoverView(app.coverStyle),
|
||||
cover: newCoverView(app.coverStyle, app.gfx, func() float64 { return app.cellAspect }),
|
||||
}
|
||||
d.AddItem(d.text, 0, 1, false)
|
||||
d.SetBorder(true).SetTitle(" Details ")
|
||||
@@ -85,7 +85,7 @@ func (d *detailPane) Draw(screen tcell.Screen) {
|
||||
if d.hasCover {
|
||||
aw, ah := d.cover.aspect()
|
||||
// At most 40% of the width, and the text keeps some rows below.
|
||||
d.coverW, d.coverH = coverCells(aw, ah, w*2/5, h-minTextRows)
|
||||
d.coverW, d.coverH = coverCells(aw, ah, w*2/5, h-minTextRows, d.cover.aspectOfCells())
|
||||
if d.coverH < minCoverRows || d.coverW < minCoverCols {
|
||||
d.coverW, d.coverH = 0, 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user