From 9dd10d856d0045919501440b6620ffc6c0c69be3 Mon Sep 17 00:00:00 2001 From: upsiflu Date: Mon, 23 Dec 2024 00:35:56 +0100 Subject: [PATCH] refactor(ui-docs): minor improvements --- front/ui-docs/.vitepress/config.ts | 3 ++ front/ui-docs/components/ui/button.md | 29 +++++++-------- front/ui-docs/components/ui/card.md | 18 ++++----- front/ui-docs/components/ui/layout/spacer.md | 2 +- front/ui-docs/designing-pages.md | 16 +++----- front/ui-docs/using-color.md | 6 +-- front/ui-docs/using-widths.md | 39 ++++++++++++++++++++ 7 files changed, 74 insertions(+), 39 deletions(-) create mode 100644 front/ui-docs/using-widths.md diff --git a/front/ui-docs/.vitepress/config.ts b/front/ui-docs/.vitepress/config.ts index 5f7453ad7..5e75c7389 100644 --- a/front/ui-docs/.vitepress/config.ts +++ b/front/ui-docs/.vitepress/config.ts @@ -14,6 +14,9 @@ export default defineConfig({ { text: 'Using Color', link: '/using-color' }, + { + text: 'Using Widths', link: '/using-widths' + }, { text: 'Using Components', link: '/using-components' }, diff --git a/front/ui-docs/components/ui/button.md b/front/ui-docs/components/ui/button.md index 39b03665a..2642353d2 100644 --- a/front/ui-docs/components/ui/button.md +++ b/front/ui-docs/components/ui/button.md @@ -1,9 +1,8 @@ - # Button @@ -363,7 +362,7 @@ Icon buttons shrink down to the icon size if you don't pass any content. If you ```vue-html - - - - + + + + +
- - - + + +
- - - + + + diff --git a/front/ui-docs/components/ui/card.md b/front/ui-docs/components/ui/card.md index db3e50ea8..facb612dd 100644 --- a/front/ui-docs/components/ui/card.md +++ b/front/ui-docs/components/ui/card.md @@ -111,11 +111,11 @@ Pass an image source to the `image` prop or set both `image.src` and `image.styl ```vue-html{3,8-9} /> - - - ```vue-html{4,10} - - - - @@ -280,7 +280,7 @@ If there are multiple actions, they will be presented in a row: > Items - + diff --git a/front/ui-docs/components/ui/layout/spacer.md b/front/ui-docs/components/ui/layout/spacer.md index d3b4ae3d8..5308e7c0e 100644 --- a/front/ui-docs/components/ui/layout/spacer.md +++ b/front/ui-docs/components/ui/layout/spacer.md @@ -134,7 +134,7 @@ const size = ref(1); ``` -
+
diff --git a/front/ui-docs/designing-pages.md b/front/ui-docs/designing-pages.md index aea9a2f88..95c70c3ff 100644 --- a/front/ui-docs/designing-pages.md +++ b/front/ui-docs/designing-pages.md @@ -127,18 +127,15 @@ The page grid consists of 46px wide tracks, separated by 32px wide gaps. Resize the window to observe how the items move. - -Click Toggle to left-align the layout. + --- - - - diff --git a/front/ui-docs/using-color.md b/front/ui-docs/using-color.md index 49c036879..bfe877f46 100644 --- a/front/ui-docs/using-color.md +++ b/front/ui-docs/using-color.md @@ -1,4 +1,4 @@ - ```
-
+
diff --git a/front/ui-docs/using-widths.md b/front/ui-docs/using-widths.md new file mode 100644 index 000000000..f62a20eea --- /dev/null +++ b/front/ui-docs/using-widths.md @@ -0,0 +1,39 @@ + + +# Using widths + +## Add width via prop + + + +```vue-html + + + + + + + +``` + + + + + + + + +