File tree Expand file tree Collapse file tree
tui/internal/ui/dashboard Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -436,13 +436,10 @@ func (l *Layout) renderFooterCards(sidebarWidth int) string {
436436 var renderedCards []string
437437 for i , card := range l .grid .cardsByPosition [PositionFooter ] {
438438 cardWidth := l .calculateCardWidth (sidebarWidth , len (l .grid .cardsByPosition [PositionFooter ]), i )
439-
440- height := DefaultFooterHeight
441- if dynamicRenderer , ok := card .Renderer .(cards.DynamicHeightCard ); ok {
442- height = dynamicRenderer .GetRequiredHeight (cardWidth - BorderPadding )
443- }
444-
445- card .SetSize (cardWidth , height )
439+ // Keep the footer row at a stable viewport height so period-dependent
440+ // list sizes (for example Referrers) do not change the Activity card's
441+ // height as the user switches between time ranges.
442+ card .SetSize (cardWidth , DefaultFooterHeight )
446443 renderedCards = append (renderedCards , card .Render ())
447444 }
448445
You can’t perform that action at this time.
0 commit comments