charmbracelet / soft-serve

The mighty, self-hostable Git server for the command line🍦
MIT License
5.16k stars 127 forks source link

Header truncates clone command at 36 characters #521

Open oznogon opened 3 months ago

oznogon commented 3 months ago

Describe the bug

When viewing a repository page, the git clone command in the upper right is truncated at 36 characters.

To Reproduce

  1. ssh to a running Soft Serve server with at least one repo
  2. Select a repo

Expected behavior

The full git clone command is visible in the TUI header, or something indicates that it is truncated.

Screenshots

Regardless of the width of the terminal window, the command is truncated:

image

image

Environment (please complete the following information):

Additional context

N/A

oznogon commented 3 months ago

Noting that due to #462 the clone commands can't be copied anyway, so I'm not sure why git clone is needed as opposed to just the URL.