jan icon indicating copy to clipboard operation
jan copied to clipboard

bug: Weird space around formatted code blocks in input

Open gaardhus opened this issue 1 year ago • 2 comments

Describe the bug Whenever I create a code block in my input, it is formatted with way too much space around the element in the conversation history.

Steps to reproduce Steps to reproduce the behavior:

  1. Go to a conversation
  2. Type an input with:
print("Hello world")
  1. Submit the input
  2. See the weird space in the conversation history.

Expected behavior A nicely formatted code block without the weird space.

Screenshots image

Environment details

  • Operating System: Arch Linux 6.6.10-arch1-1
  • Jan Version: 0.4.3
  • Processor: Ryzen 7 PRO 7840U w/ Radeon 780M Graphics (16)
  • RAM: 32GB

Additional context Add any other context or information that could be helpful in diagnosing the problem.

gaardhus avatar Jan 12 '24 10:01 gaardhus

hi @gaardhus, can you help us provide the model that you are using?

Van-QA avatar Jan 12 '24 12:01 Van-QA

It happens independently of model (tried with openai gpt4 and mixtral 8x7b), and seems to be a CSS issue I would guess.

image

This div seems to be the cause?

gaardhus avatar Jan 12 '24 12:01 gaardhus

Tested and looking good on the latest Jan app, we were not able to reproduce this from our side, feel free to reopen this if the issue persists.

image

Van-QA avatar Jan 22 '24 04:01 Van-QA

All looks good for me on version 0.4.4 as well, thanks for the fix!

gaardhus avatar Jan 22 '24 11:01 gaardhus