diff --git a/pyproject.toml b/pyproject.toml index f13fa976..b9e39b41 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", diff --git a/ragna/deploy/_ui/central_view.py b/ragna/deploy/_ui/central_view.py index cacd3718..b7f3e2e0 100644 --- a/ragna/deploy/_ui/central_view.py +++ b/ragna/deploy/_ui/central_view.py @@ -400,7 +400,7 @@ def chat_interface(self): if self.current_chat is None: return - chat_interface = RagnaChatInterface( + return RagnaChatInterface( *[ RagnaChatMessage( message["content"], @@ -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: diff --git a/requirements-docker.lock b/requirements-docker.lock index cb573f94..34a21280 100644 --- a/requirements-docker.lock +++ b/requirements-docker.lock @@ -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