Skip to content

Commit

Permalink
bump minimum panel version to 1.3.8 (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeier authored Feb 2, 2024
1 parent 2b32fdd commit c343820
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 29 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.6,<1.4",
"panel==1.3.8",
"pydantic>=2",
"pydantic-core",
"pydantic-settings>=2",
Expand Down
50 changes: 23 additions & 27 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

chat_interface = RagnaChatInterface(
return RagnaChatInterface(
*[
RagnaChatMessage(
message["content"],
Expand Down Expand Up @@ -447,34 +447,30 @@ 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",
},
),
)
),
show_activity_dot=False,
)

# 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
2 changes: 1 addition & 1 deletion requirements-docker.lock
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ pandas==2.1.4
# via
# bokeh
# panel
panel==1.3.6
panel==1.3.8
# via Ragna (pyproject.toml)
param==2.0.1
# via
Expand Down

0 comments on commit c343820

Please sign in to comment.