Skip to content

Left border is missing #1634

@andrinoff

Description

@andrinoff

Describe the bug
A clear and concise description of what the bug is.

I am trying to adapt my app for Windows, and we have a problem with the left borders. They are completely missing, with the connector (the curved line). The right and top ones are all intact. It particularly doesnt work, when running on Windows in the Powershell (also tried WezTerm). With WSL everything works fine.

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

  • OS in this case, Windows
  • Shell cmd.exe & powershell
  • Terminal Emulator ANY
  • Terminal Multiplexer none in the testing

To Reproduce
Steps to reproduce the behavior:

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

Source Code

DialogBoxStyle = lipgloss.NewStyle().
			Border(lipgloss.RoundedBorder()).
			BorderForeground(lipgloss.Color("#25A065")).
			Padding(1, 0).
			BorderTop(true).
			BorderLeft(true).
			BorderRight(true).
			BorderBottom(true)

This is the definition of a style

and this is the usage:

dialog := DialogBoxStyle.Render(accountList.String())

This is just an example, the full repo is at floatpane/matcha. There are several uses across tui/composer.go, tui/drafts, tui/settings (where there is this dialogbox and also a theme preview, which is also missing the left border)

Expected behavior

All the borders intact.

Screenshots

Image Image

Additional context:

I tried to fix the issue by:

  1. Adding horizontal padding
  2. Changing the MaxWidth
  3. Adding MarginLeft

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions