diff --git a/docs/_layouts/component.njk b/docs/_layouts/component.njk
index aa4ca0fa9..70da11fc6 100644
--- a/docs/_layouts/component.njk
+++ b/docs/_layouts/component.njk
@@ -19,7 +19,7 @@
Slots
Learn more about using slots.
-
+
{% endif %}
{# Properties #}
@@ -50,13 +50,13 @@
Attributes & Properties
Learn more about attributes and properties.
-
+
{% endif %}
{# Methods #}
@@ -97,7 +97,7 @@
Methods
Learn more about methods.
-
+
{% endif %}
{# Events #}
@@ -132,7 +132,7 @@
Events
Learn more about events.
-
+
{% endif %}
{# Custom Properties #}
@@ -159,7 +159,7 @@
CSS custom properties
Learn more about CSS custom properties.
-
+
{% endif %}
{# Custom States #}
@@ -191,7 +191,7 @@
Custom States
Learn more about custom states.
-
+
{% endif %}
{# CSS Parts #}
@@ -218,7 +218,7 @@
CSS parts
Learn more about CSS parts.
-
+
{% endif %}
{# Dependencies #}
diff --git a/docs/assets/styles/docs.css b/docs/assets/styles/docs.css
index 8bd5b1391..2695da882 100644
--- a/docs/assets/styles/docs.css
+++ b/docs/assets/styles/docs.css
@@ -717,13 +717,28 @@ table.colors {
gap: 1rem;
}
-.component-table td > * + * {
- margin-block-start: var(--wa-space-s);
+/* Component API tables */
+wa-scroller:has(.component-table) {
+ margin-block-end: var(--wa-space-xl);
}
-.table-scroll {
- overflow-x: auto;
- margin-block-end: var(--wa-flow-spacing);
+.component-table {
+ .table-name {
+ white-space: nowrap;
+ }
+
+ .table-arguments,
+ .table-description {
+ min-width: 40ch;
+ }
+
+ .table-reflect {
+ text-align: center;
+ }
+
+ code {
+ white-space: inherit;
+ }
}
/** desktop */