feat: refine request log

This commit is contained in:
2025-12-06 21:49:51 +08:00
parent 1941e6bcaf
commit 8be7af6815
7 changed files with 248 additions and 87 deletions

View File

@@ -4,20 +4,20 @@ const Modal: Component<JSX.HTMLAttributes<HTMLDivElement>> = (props) => {
const [local, others] = splitProps(props, ['class']);
return (
<div
class={`fixed inset-0 bg-gray-500 bg-opacity-75 flex items-center justify-center z-50 ${local.class}`}
class={`fixed inset-0 bg-gray-500 bg-opacity-75 flex items-center justify-center z-50 ${local.class || ""}`}
{...others}
/>
);
};
const ModalContent: Component<JSX.HTMLAttributes<HTMLDivElement>> = (props) => {
const [local, others] = splitProps(props, ['class']);
return (
<div
class={`bg-white rounded-lg shadow-xl max-w-md w-full mx-4 ${local.class}`}
{...others}
/>
);
const [local, others] = splitProps(props, ['class']);
return (
<div
class={`bg-white rounded-lg shadow-xl w-full mx-4 ${local.class || ""}`}
{...others}
/>
);
};
export { Modal, ModalContent };