Skip to content

Commit

Permalink
Fix #504
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrotsmnrd committed Dec 11, 2024
1 parent 9221bb8 commit 170b11b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ragna/deploy/_ui/central_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ def on_click_chat_info_wrapper(self, event):

metadata_filters_readable = str(
MetadataFilter.from_primitive(self.current_chat["metadata"]["input"])
).replace("\n", "<br>")

details = f"<div class='details details_block' style='display:block;'>{metadata_filters_readable}</div><br />\n\n"
).replace("\n", "<br>").replace(" ", "&nbsp;")
details = f"<div class='details details_block' style='display:block;'><pre>{metadata_filters_readable}</pre></div><br />\n\n"
grid_height = 1

elif self.current_chat["metadata"]["input"] is None:
Expand Down
8 changes: 8 additions & 0 deletions ragna/deploy/_ui/css/chat_info/markdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,11 @@
:host(.chat_info_markdown) ul {
list-style-type: none;
}

:host(.chat_info_markdown) .details_block pre {
width: calc(100% - 10px) ;
overflow-x: scroll;
padding-right:10px;
margin-right:10px;

}

0 comments on commit 170b11b

Please sign in to comment.