Skip to content

Commit

Permalink
Revert "bump minimum panel version to 1.3.7"
Browse files Browse the repository at this point in the history
This reverts commit 429710a.
  • Loading branch information
pmeier committed Jan 19, 2024
1 parent 26ca5c1 commit 34a37a9
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 23 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies = [
"httpx_sse",
"importlib_metadata>=4.6; python_version<'3.10'",
"packaging",
"panel>=1.3.7,<1.4",
"panel>=1.3.6,<1.4",
"pydantic>=2",
"pydantic-core",
"pydantic-settings>=2",
Expand Down
49 changes: 27 additions & 22 deletions ragna/deploy/_ui/central_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def chat_interface(self):
if self.current_chat is None:
return

return RagnaChatInterface(
chat_interface = RagnaChatInterface(
*[
RagnaChatMessage(
message["content"],
Expand Down Expand Up @@ -447,29 +447,34 @@ def chat_interface(self):
),
)
],
card_params=dict(
stylesheets=ui.stylesheets(
(":host", {"border": "none !important"}),
(
".chat-feed-log",
{
"padding-right": "18%",
"margin-left": "18%",
"padding-top": "25px !important",
},
),
(
".chat-interface-input-container",
{
"margin-left": "19%",
"margin-right": "20%",
"margin-bottom": "20px",
},
),
)
),
)

# TODO: Pass as regular parameters when
# https://github.com/holoviz/panel/pull/6154 is merged and released.
chat_interface._card.stylesheets.extend(
ui.stylesheets(
(":host", {"border": "none !important"}),
(
".chat-feed-log",
{
"padding-right": "18%",
"margin-left": "18%",
"padding-top": "25px !important",
},
),
(
".chat-interface-input-container",
{
"margin-left": "19%",
"margin-right": "20%",
"margin-bottom": "20px",
},
),
)
)

return chat_interface

@pn.depends("current_chat")
def header(self):
if self.current_chat is None:
Expand Down

0 comments on commit 34a37a9

Please sign in to comment.