Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrotsmnrd committed Dec 11, 2024
1 parent 170b11b commit b846b2c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
14 changes: 10 additions & 4 deletions ragna/deploy/_ui/central_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,16 @@ def on_click_chat_info_wrapper(self, event):
# `MetadataFilter`s provided as dict
title = "Metadata Filters"

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

metadata_filters_readable = (
str(
MetadataFilter.from_primitive(
self.current_chat["metadata"]["input"]
)
)
.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

Expand Down
9 changes: 4 additions & 5 deletions ragna/deploy/_ui/css/chat_info/markdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@
}

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

}
padding-right: 10px;
margin-right: 10px;
}

0 comments on commit b846b2c

Please sign in to comment.