diff libervia/web/pages/_browser/popup.py @ 1619:a2cd4222c702

browser: Updates for new design: This patch add code to handle the new design for chat. New bridge method are used to invite users to MUC or get list of occupants. A new modules is used for components, with a first one for collapsible cards. rel 457
author Goffi <goffi@goffi.org>
date Sat, 12 Apr 2025 00:21:45 +0200
parents f52b89365002
children
line wrap: on
line diff
--- a/libervia/web/pages/_browser/popup.py	Sat Oct 26 23:07:01 2024 +0200
+++ b/libervia/web/pages/_browser/popup.py	Sat Apr 12 00:21:45 2025 +0200
@@ -1,6 +1,10 @@
 from browser import document, timer
-from js_modules.tippy_js import tippy
+from js_modules.tippy_js import tippy as tippy_ori
+from javascript import pyobj2jsobj
 
+# FIXME: workaround for https://github.com/brython-dev/brython/issues/2542
+def tippy(target, data):
+    return tippy_ori(target, pyobj2jsobj(data))
 
 def create_popup(
     target,