diff --git a/wwwroot/api/my_todos_popup.dspy b/wwwroot/api/my_todos_popup.dspy index b3597b6..811b7c7 100644 --- a/wwwroot/api/my_todos_popup.dspy +++ b/wwwroot/api/my_todos_popup.dspy @@ -126,6 +126,21 @@ if not cards: cards = [{"widgettype": "Text", "options": {"text": "暂无待办", "cfontsize": 0.9, "color": "#94a3b8", "padding": "16px"}}] +# embed=1(手机端「待办」Tab 整页渲染):返回纯 VBox,不套 PopupWindow 弹窗壳 +_embed = ((params_kw or {}).get('embed') or '').strip() +if _embed == '1': + return { + "widgettype": "VBox", + "options": {"css": "filler", "width": "100%", "height": "100%", + "padding": "0", "gap": "0px"}, + "subwidgets": [{ + "widgettype": "VScrollPanel", + "options": {"css": "filler", "width": "100%", "height": "100%", + "padding": "12px", "gap": "8px"}, + "subwidgets": cards + }] + } + return { "widgettype": "PopupWindow", "id": "my_todos_pw",