Some fixes

This commit is contained in:
Eric Fennis
2023-04-28 23:47:39 +02:00
parent 3dcca52da0
commit 1ada76083a
6 changed files with 14 additions and 4 deletions
@@ -147,6 +147,8 @@ function resetStyle () {
padding: 12px 24px 24px;
border-radius: 12px;
margin-bottom: 24px;
position: relative;
z-index: 0;
}
.color-input {
width: 34px;
+5 -2
View File
@@ -76,7 +76,7 @@ function navigateToIcon() {
display: block;
font-size: 12px;
line-height: 20px;
margin-left: 24px;
margin-left: 26px;
transform: translate(-50%, 48px) scale(0.9);
font-weight: 400;
position: absolute;
@@ -91,7 +91,10 @@ function navigateToIcon() {
pointer-events: none;
transition: cubic-bezier(0.19, 1, 0.22, 1) .2s;
transition-property: opacity, transform;
/* max-width: calc((32px * 2) + 56px); */
overflow: hidden;
white-space: pre-wrap;
word-break: break-word;
}
.icon-button:active {
+5 -1
View File
@@ -92,7 +92,7 @@ onMounted(() => {
<template>
<Input type="search" placeholder="Search icons..." v-model="searchQuery" class="input-wrapper" ref="searchInput"/>
<IconGrid :activeIcon="activeIconName" :icons="paginatedIcons" @setActiveIcon="setActiveIconName"/>
<EndOfPage @end-of-page="next"/>
<EndOfPage @end-of-page="next" class="bottom-page"/>
<IconDetailOverlay :icon="activeIcon" @close="setActiveIconName('')"/>
</template>
@@ -117,4 +117,8 @@ onMounted(() => {
.input-wrapper {
margin-bottom: 8px;
}
.bottom-page {
height: 200px;
}
</style>
+1
View File
@@ -27,6 +27,7 @@ export default defineConfig({
nav: [
{ text: 'Icons', link: '/icons/index.md' },
{ text: 'Guide', link: '/guide/' },
{ text: 'Packages', link: '/packages' },
{ text: 'License', link: '/license' },
],
@@ -18,7 +18,7 @@ onMounted(() => {
<template>
<div>
<IconCustomizer/>
<IconCustomizer v-if="page?.relativePath?.startsWith?.('icons')"/>
<CategoryList v-if="page?.relativePath?.startsWith?.('icons')"/>
</div>
</template>