Skip to content

Commit da8fac4

Browse files
committed
fix: update icon paths in Vitepress config and theme for consistency; adjust typography max-width for improved readability
1 parent 4aacb4f commit da8fac4

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

docs/.vitepress/config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default defineNimiqVitepressConfig({
1212
modules: [
1313
{
1414
subpath: 'nimiq-css',
15-
icon: 'i-custom:nimiq-css',
15+
icon: 'i-local:nimiq-css',
1616
defaultPageLink: '/nimiq-css/getting-started',
1717
text: 'Nimiq CSS',
1818
description: 'The CSS framework',
@@ -67,7 +67,7 @@ export default defineNimiqVitepressConfig({
6767
{
6868
subpath: 'frankenstein',
6969
text: 'Nimiq Frankenstein',
70-
icon: 'i-custom:frankenstein',
70+
icon: 'i-local:frankenstein',
7171
defaultPageLink: '/frankenstein/getting-started',
7272
description: 'The Vue 3 components',
7373
sidebar: [
@@ -82,7 +82,7 @@ export default defineNimiqVitepressConfig({
8282
items: [
8383
{
8484
text: 'Dialog Components',
85-
icon: 'i-custom:modal',
85+
icon: 'i-local:modal',
8686
items: [
8787
{ text: 'Basic Modal', link: '/frankenstein/components/basic-modal' },
8888
{ text: 'Nested Modal', link: '/frankenstein/components/nested-modal' },
@@ -100,7 +100,7 @@ export default defineNimiqVitepressConfig({
100100
{
101101
subpath: 'vitepress-theme',
102102
text: 'Vitepress Theme',
103-
icon: 'i-custom:nimiq-vitepress',
103+
icon: 'i-local:nimiq-vitepress',
104104
defaultPageLink: '/vitepress-theme',
105105
description: 'Your Vitepress with Nimiq',
106106
sidebar: [
@@ -128,7 +128,7 @@ export default defineNimiqVitepressConfig({
128128
{
129129
subpath: 'nimiq-icons',
130130
text: 'Nimiq Icons',
131-
icon: 'i-custom:nimiq-vitepress',
131+
icon: 'i-local:nimiq-vitepress',
132132
defaultPageLink: '/nimiq-icons/explorer',
133133
description: 'The Iconify Set for Nimiq',
134134
sidebar: [

docs/vitepress-theme/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const themeConfig = {
5555
subpath: '/vitepress-theme',
5656

5757
// This will be set as a class on a div element. This works great for UnoCSS Icons preset. Let me know if you need help with other icon libraries.
58-
icon: 'i-custom:nimiq-css',
58+
icon: 'i-local:nimiq-css',
5959

6060
// This will be the default page link when the user clicks on the selector
6161
defaultPageLink: '/your-submodule/getting-started',

packages/nimiq-css/src/css/typography.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282

8383
*:not(:where(.nq-raw, .nq-raw *, .nq-not-prose, .nq-not-prose *, .shiki *)) {
8484
line-height: 1.5;
85-
max-width: var(--nq-prose-max-width, 780px);
85+
max-width: var(--nq-prose-max-width, 78ch);
8686
margin-left: auto;
8787
margin-right: auto;
8888
font-family: var(--nq-font-sans, 'Mulish');

packages/nimiq-vitepress-theme/src/layout/Layout.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const isMobileOrTablet = breakpoints.smaller('lg')
4040
<Sidebar v-if="showSidebar" w="$nq-sidebar-width" />
4141
</div>
4242
<main
43+
of-hidden
4344
dark:bg-neutral-1100 min-h-screen flex-1 min-w-0 :class="{
4445
'md:max-w-1220 md:mx-auto': !showSidebar && !showSecondarySidebar,
4546
}"

packages/nimiq-vitepress-theme/src/layout/PageContent.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const { showSourceCode, showCopyMarkdown, editUrl, sourceCodeUrl, sourceCodeLabe
2424
'xl:f-px-xl': !showSecondarySidebar,
2525
}" f-pt-sm f="$px $px-min-48 $px-max-72" pb="f-xl xl:sm" flex="~ gap-16" relative h-full
2626
>
27-
<div flex="~ col" h-full flex-1 max-w-full>
27+
<div flex="~ col wrap gap-8" h-full flex-1 max-w-full>
2828
<div v-if="showBreadcrumbs || showSourceCode || showCopyMarkdown" f-pb-lg flex="~ items-center justify-between">
2929
<ul v-if="showBreadcrumbs" flex="~ items-center gap-12">
3030
<li v-for="({ text, icon }, i) in breadcrumbs" :key="text" contents w-max>
@@ -55,7 +55,7 @@ const { showSourceCode, showCopyMarkdown, editUrl, sourceCodeUrl, sourceCodeLabe
5555
</div>
5656
</div>
5757

58-
<article flex-1 class="nq-prose" f-pb="lg md:3xl" var:nq-prose-max-width:none>
58+
<article flex-1 class="nq-prose" f-pb="lg md:3xl">
5959
<Content max-w-none px-0 />
6060
<Changelog v-if="showChangelog" />
6161
</article>

0 commit comments

Comments
 (0)