diff --git a/packages/astro-component-docs/src/components/Example.astro b/packages/astro-component-docs/src/components/Example.astro index 26a0734..f7c5f80 100644 --- a/packages/astro-component-docs/src/components/Example.astro +++ b/packages/astro-component-docs/src/components/Example.astro @@ -71,4 +71,18 @@ const { __code, title } = Astro.props; margin: 0; border-radius: 0; } + + @media (max-width: 768px) { + .acd-example-preview { + padding: 1rem; + } + + .acd-example-title { + padding: 0.5rem 0.75rem; + } + + .acd-example-code { + font-size: 0.8125rem; + } + } diff --git a/packages/astro-component-docs/src/components/PropsTable.astro b/packages/astro-component-docs/src/components/PropsTable.astro index b730c2b..1493aa5 100644 --- a/packages/astro-component-docs/src/components/PropsTable.astro +++ b/packages/astro-component-docs/src/components/PropsTable.astro @@ -16,6 +16,7 @@ const doc: ComponentDoc | undefined = propsData[key]; {doc ? (
{doc.description &&

{doc.description}

} +
@@ -44,6 +45,7 @@ const doc: ComponentDoc | undefined = propsData[key]; ))}
+
) : (
@@ -56,6 +58,11 @@ const doc: ComponentDoc | undefined = propsData[key]; margin: 1.5rem 0; } + .acd-props-table-wrap { + overflow-x: auto; + -webkit-overflow-scrolling: touch; + } + .acd-props-description { margin-bottom: 1rem; color: var(--acd-text-muted, #64748b); @@ -101,4 +108,15 @@ const doc: ComponentDoc | undefined = propsData[key]; color: #991b1b; font-size: 0.875rem; } + + @media (max-width: 768px) { + .acd-props-table th, + .acd-props-table td { + padding: 0.375rem 0.5rem; + } + + .acd-props-table { + font-size: 0.8125rem; + } + } diff --git a/website/src/layouts/DocsLayout.astro b/website/src/layouts/DocsLayout.astro index 7a2d90a..af2b847 100644 --- a/website/src/layouts/DocsLayout.astro +++ b/website/src/layouts/DocsLayout.astro @@ -56,18 +56,27 @@ navigation.sort(