From 1805dbeaa243da4a9af542507d2db1379541608e Mon Sep 17 00:00:00 2001 From: liumengyi Date: Thu, 9 Nov 2023 13:43:49 +0800 Subject: [PATCH] * Fix bug #40406, add class after using blockPanel. --- module/block/ui/doccollectlistblock.html.php | 2 +- module/block/ui/docdynamicblock.html.php | 2 +- module/block/ui/docrecentupdateblock.html.php | 5 +---- module/block/ui/docstatisticblock.html.php | 2 +- module/block/ui/docviewlistblock.html.php | 2 +- 5 files changed, 5 insertions(+), 8 deletions(-) diff --git a/module/block/ui/doccollectlistblock.html.php b/module/block/ui/doccollectlistblock.html.php index 3ae751115b..1fb2ef724d 100644 --- a/module/block/ui/doccollectlistblock.html.php +++ b/module/block/ui/doccollectlistblock.html.php @@ -42,6 +42,6 @@ namespace zin; doc->noDoc : div(setClass('flex flex-wrap content-between gap-3'), $docItems) -); +blockPanel(empty($docList) ? $lang->doc->noDoc : div(setClass('flex flex-wrap content-between gap-3'), $docItems)); render(); diff --git a/module/block/ui/docstatisticblock.html.php b/module/block/ui/docstatisticblock.html.php index 1161e7c973..c79fc3e0e8 100644 --- a/module/block/ui/docstatisticblock.html.php +++ b/module/block/ui/docstatisticblock.html.php @@ -58,5 +58,5 @@ namespace zin;