Skip to content

Commit

Permalink
layout regression fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jrnxf committed Jun 15, 2022
1 parent 9942711 commit 7562442
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion ui/components/repo/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
7 changes: 4 additions & 3 deletions ui/components/user/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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))

Expand Down

0 comments on commit 7562442

Please sign in to comment.