From 713c2fe34fa73172d71110a19e18e5d6a4e58651 Mon Sep 17 00:00:00 2001 From: upsiflu Date: Sun, 9 Mar 2025 13:19:05 +0100 Subject: [PATCH] feat(ui): [WIP] implement Pills (Multi-pill widget) --- front/src/components/ui/Pills.vue | 5 +- front/ui-docs/components/ui/pills.md | 74 ++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+), 2 deletions(-) diff --git a/front/src/components/ui/Pills.vue b/front/src/components/ui/Pills.vue index 9664f9509..753326b30 100644 --- a/front/src/components/ui/Pills.vue +++ b/front/src/components/ui/Pills.vue @@ -234,13 +234,14 @@ watch(model, () => { margin: 0 -4px; padding:4px; - border-radius: 24px; + border-radius: 22px; min-height: 48px; min-width: 160px; + gap: 4px; + > .pill { - margin: 4px; padding: 2px; &.static { text-decoration: none; diff --git a/front/ui-docs/components/ui/pills.md b/front/ui-docs/components/ui/pills.md index 0fd327f69..63cd8ce89 100644 --- a/front/ui-docs/components/ui/pills.md +++ b/front/ui-docs/components/ui/pills.md @@ -1,6 +1,7 @@ ```ts @@ -49,6 +56,73 @@ If you place custom pills into `others`, the user will be able to select, edit a ::: +## Test + + + ## No pills ```ts