Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to define the color of a specified cell in a table #502

Open
JJ-H opened this issue Mar 29, 2024 · 0 comments
Open

How to define the color of a specified cell in a table #502

JJ-H opened this issue Mar 29, 2024 · 0 comments

Comments

@JJ-H
Copy link

JJ-H commented Mar 29, 2024

Describe the bug
When I specified the color of cell text,I got a unexpected table style, cell text disappear

Setup
Please complete the following information along with version numbers, if applicable.

  • OS [ macOS]
  • Shell [ zsh]
  • Terminal Emulator [ iterm]
  • Terminal Multiplexer [tmux]
  • Locale [ zh_CN.UTF-8.]

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Source Code

acceptMsg := lipgloss.NewStyle().Inline(true).Foreground(lipgloss.Color("#BBFFFF")).Render("Accept")
rows = append(rows, table.Row{pr.Title, pr.Number, pr.Creator.Name, acceptMsg, conflictMsg, mergeCheckMsg})

Expected behavior
AcceptMsg display with color and table style is correct.

Screenshots
Accept disappeared !
image

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant