From 66fdee2c0565454602b0655efc010e920a31aeaf Mon Sep 17 00:00:00 2001
From: Jan Andrle <andrle.jan@centrum.cz>
Date: Thu, 6 Mar 2025 10:59:41 +0100
Subject: [PATCH] :abc: ui/ux

---
 docs/components/example.html.js |  1 -
 docs/global.css.js              | 24 +++++++++++++++++-------
 index.d.ts                      |  4 ++--
 3 files changed, 19 insertions(+), 10 deletions(-)

diff --git a/docs/components/example.html.js b/docs/components/example.html.js
index 1dbb5e8..477cf0d 100644
--- a/docs/components/example.html.js
+++ b/docs/components/example.html.js
@@ -5,7 +5,6 @@ ${host} {
 	grid-column: full-main;
 	width: calc(100% - .75em);
 	height: calc(4/6 * var(--body-max-width));
-	margin: 2rem auto;
 	border-radius: var(--border-radius);
 	box-shadow: var(--shadow);
 	border: 1px solid var(--border);
diff --git a/docs/global.css.js b/docs/global.css.js
index 2127b98..78bb203 100644
--- a/docs/global.css.js
+++ b/docs/global.css.js
@@ -208,12 +208,6 @@ pre code {
 	background-color: transparent;
 	padding: 0;
 }
-.illustration:not(:has( .comparison)) pre {
-	background: none;
-	border-style: dashed !important;
-	width: fit-content;
-	padding: 1em 2em;
-}
 
 /* Layout */
 @media (min-width: 768px) {
@@ -272,11 +266,27 @@ body > main h3, body > main h4 {
 }
 
 /* Boxes */
+.illustration{
+	grid-column: full-main;
+	width: calc(100% - .75em);
+}
+.illustration:not(:has( .comparison)) pre {
+	background: none;
+	border-style: dashed !important;
+	width: fit-content;
+	padding: 1em 2em;
+}
+
 .comparison {
 	display: grid;
 	grid-template-columns: 1fr;
-	gap: 1.5rem;
+	gap: calc(.75em / 2);
 	margin: 1.5rem 0;
+
+	> div {
+		width: 100%;
+		overflow: hidden;
+	}
 }
 
 @media (min-width: 768px) {
diff --git a/index.d.ts b/index.d.ts
index d1fdeed..0950525 100644
--- a/index.d.ts
+++ b/index.d.ts
@@ -76,7 +76,7 @@ export function el<
 	A extends ddeComponentAttributes,
 	EL extends SupportedElement | ddeDocumentFragment
 >(
-	component: (attr: A)=> EL,
+	component: (attr: A, ...rest: any[])=> EL,
 	attrs?: NoInfer<A>,
 	...addons: ddeElementAddon<EL>[]
 ): EL extends ddeHTMLElementTagNameMap[keyof ddeHTMLElementTagNameMap]
@@ -86,7 +86,7 @@ export function el<
 	A extends { textContent: ddeStringable },
 	EL extends SupportedElement | ddeDocumentFragment
 >(
-	component: (attr: A)=> EL,
+	component: (attr: A, ...rest: any[])=> EL,
 	attrs?: NoInfer<A>["textContent"],
 	...addons: ddeElementAddon<EL>[]
 ): EL extends ddeHTMLElementTagNameMap[keyof ddeHTMLElementTagNameMap]