From 32ee61aa0ccf5200b4a36e82fc9abe8798f53cca Mon Sep 17 00:00:00 2001 From: sunhao Date: Thu, 7 Mar 2024 15:41:31 +0800 Subject: [PATCH] * zin: improve style of idLabel. --- lib/zin/wg/idlabel/v1.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/zin/wg/idlabel/v1.php b/lib/zin/wg/idlabel/v1.php index ad6aa745c8..94188b0df6 100644 --- a/lib/zin/wg/idlabel/v1.php +++ b/lib/zin/wg/idlabel/v1.php @@ -21,7 +21,13 @@ class idLabel extends wg protected function build() { $id = $this->prop('id'); - return span(setClass('label label-id gray-300-outline size-sm rounded-full'), $id); + return span + ( + setClass('label label-id gray-300-outline size-sm rounded-full flex-none'), + set($this->getRestProps()), + $id, + $this->children() + ); } public static function create(string|int|array $idOrProps, ?array $props = null, mixed ...$children): static