mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-17 14:28:25 +00:00
Fix icons preview on mobile
This commit is contained in:
@@ -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;
|
||||
|
||||
+25
-1
@@ -38,7 +38,7 @@ const codeExample = computed(() => data.codeExamples?.map(
|
||||
</script>
|
||||
|
||||
<div :class="$style.layout">
|
||||
<div>
|
||||
<div :class="$style.iconPreviews">
|
||||
<IconPreview
|
||||
id="previewer"
|
||||
:name="$params.name"
|
||||
@@ -48,6 +48,7 @@ const codeExample = computed(() => data.codeExamples?.map(
|
||||
<IconPreviewSmall
|
||||
:name="$params.name"
|
||||
:iconNode="$params.iconNode"
|
||||
:class="$style.smallPreview"
|
||||
/>
|
||||
</div>
|
||||
<div >
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user