Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump minimum panel version to 1.3.8 #284

Merged
merged 10 commits into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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(
pmeier marked this conversation as resolved.
Show resolved Hide resolved
(":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 @@ -211,7 +211,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
Loading