diff --git a/docs/.vitepress/theme/components/icons/IconPreviewSmall.vue b/docs/.vitepress/theme/components/icons/IconPreviewSmall.vue index eefbc7624..f86e1dbe1 100644 --- a/docs/.vitepress/theme/components/icons/IconPreviewSmall.vue +++ b/docs/.vitepress/theme/components/icons/IconPreviewSmall.vue @@ -31,10 +31,10 @@ const Icon = createLucideIcon(props.name, props.iconNode) display: flex; width: 100%; height: 100%; - align-items: center; + /* align-items: center; */ justify-content: center; gap: 24px; - margin-top: 24px; + /* margin-top: 24px; */ } .icon-wrapper { border: 1px solid transparent; diff --git a/docs/icons/[name].md b/docs/icons/[name].md index 7250a5f17..68dc11d86 100644 --- a/docs/icons/[name].md +++ b/docs/icons/[name].md @@ -38,7 +38,7 @@ const codeExample = computed(() => data.codeExamples?.map(
-
+
data.codeExamples?.map(
@@ -79,6 +80,8 @@ const codeExample = computed(() => data.codeExamples?.map( grid-area: preview; margin-bottom: 24px; max-width: 240px; + width: 240px; + flex-shrink: 0; } .layout { @@ -103,6 +106,18 @@ const codeExample = computed(() => data.codeExamples?.map( margin-bottom: 8px; } + .iconPreviews { + display: flex; + justify-content: flex-start; + gap: 24px; + } + + .smallPreview { + flex-shrink: 2; + flex-direction: column; + align-items: flex-start; + } + @media (min-width: 640px) { .layout { align-items: flex-start; @@ -114,6 +129,15 @@ const codeExample = computed(() => data.codeExamples?.map( .preview { margin: 0 auto; } + + .iconPreviews { + flex-direction: column; + } + + .smallPreview { + flex-direction: row; + align-items: center; + } } @media (min-width: 860px) {