From 75624426006451a35cb66024f702b4d3568d4959 Mon Sep 17 00:00:00 2001 From: Colby Thomas Date: Tue, 14 Jun 2022 22:04:23 -0600 Subject: [PATCH] layout regression fix --- README.md | 2 +- ui/components/repo/repo.go | 2 +- ui/components/user/user.go | 7 ++++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index edddd63..0559745 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Workflow](https://github.com/thatvegandev/gh-eco/actions/workflows/ci.yml/badge. [![License](https://img.shields.io/badge/License-MIT-default.svg)](./LICENSE.md) [![Github Stars](https://img.shields.io/github/stars/thatvegandev/gh-eco)](https://github.com/thatvegandev/gh-eco/stargazers) -![demo](https://github.com/coloradocolby/assets/raw/main/gh-eco/demo.gif) +![demo](https://github.com/thatvegandev/assets/raw/main/gh-eco/demo.gif) ## Installation diff --git a/ui/components/repo/repo.go b/ui/components/repo/repo.go index 0f39809..b86c5c6 100644 --- a/ui/components/repo/repo.go +++ b/ui/components/repo/repo.go @@ -65,5 +65,5 @@ func BuildPinnedRepoDisplay(repos []models.Repo, ctx *context.ProgramContext) st } } - return lipgloss.JoinVertical(lipgloss.Top, lc.String(), rc.String()) + return lipgloss.JoinHorizontal(lipgloss.Top, lc.String(), rc.String()) } diff --git a/ui/components/user/user.go b/ui/components/user/user.go index f4ad020..d5ebb6c 100644 --- a/ui/components/user/user.go +++ b/ui/components/user/user.go @@ -8,6 +8,7 @@ import ( tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/lipgloss" "github.com/thatvegandev/gh-eco/ui/commands" + "github.com/thatvegandev/gh-eco/ui/components/graph" "github.com/thatvegandev/gh-eco/ui/components/repo" "github.com/thatvegandev/gh-eco/ui/context" "github.com/thatvegandev/gh-eco/ui/models" @@ -166,9 +167,9 @@ func (m *Model) buildDisplay() { w(utils.GetNewLines(1)) - // w(lipgloss.NewStyle(). - // Align(lipgloss.Left). - // Render(graph.BuildGraphDisplay(u.ActivityGraph.Weeks))) + w(lipgloss.NewStyle(). + Align(lipgloss.Left). + Render(graph.BuildGraphDisplay(u.ActivityGraph.Weeks))) w(utils.GetNewLines(2))