Skip to content

Commit 4b72cf3

Browse files
committed
docs(Toast): improve
1 parent 42033c7 commit 4b72cf3

File tree

5 files changed

+8
-11
lines changed

5 files changed

+8
-11
lines changed

docs/components/toast.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,13 @@ Pass a `title` field to the `toast.add` method to display a title.
4646
</ClientOnly>
4747
</div>
4848

49-
::: details
5049
<<< @/examples/toast/demo/Title.vue{7,13 vue:line-numbers}
51-
:::
5250

5351
### Description
5452

5553
Pass a `description` field to the `toast.add` method to display a description.
5654

57-
<div class="lg:min-h-[275px]">
55+
<div class="lg:min-h-[310px]">
5856
<ClientOnly>
5957
<DescriptionExample />
6058
</ClientOnly>
@@ -142,7 +140,7 @@ Pass an `actions` field to add some [Button](/components/button) actions to the
142140
Actions renders differently when the description is not set. You can try to remove it.
143141
:::
144142

145-
<div class="lg:min-h-[275px]">
143+
<div class="lg:min-h-[310px]">
146144
<ClientOnly>
147145
<ActionsExample />
148146
</ClientOnly>

docs/examples/toast/Actions.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ const description = ref('Is there anything else you need help with?')
1010
<template>
1111
<ComponentShowExample>
1212
<template #actions>
13-
<B24FormField label="description" class="w-full sm:w-1/4">
14-
<B24Input v-model="description" />
13+
<B24FormField label="description" class="w-full sm:flex-1">
14+
<B24Textarea v-model="description" />
1515
</B24FormField>
1616
</template>
1717
<Demo :title="title" :description="description" />

docs/examples/toast/Description.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ const description = ref('Is there anything else you need help with?')
1010
<template>
1111
<ComponentShowExample>
1212
<template #actions>
13-
<B24FormField label="title" class="w-full sm:w-1/4">
13+
<B24FormField label="title" class="w-full sm:flex-1">
1414
<B24Input v-model="title" />
1515
</B24FormField>
16-
<B24FormField label="description" class="w-full sm:w-1/4">
17-
<B24Input v-model="description" />
16+
<B24FormField label="description" class="w-full sm:flex-1">
17+
<B24Textarea v-model="description" />
1818
</B24FormField>
1919
</template>
2020
<Demo :title="title" :description="description" />

docs/examples/toast/Title.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const title = ref('The calculation of indicators has been completed')
99
<template>
1010
<ComponentShowExample>
1111
<template #actions>
12-
<B24FormField label="title" class="w-full sm:w-1/4">
12+
<B24FormField label="title" class="w-full">
1313
<B24Input v-model="title" />
1414
</B24FormField>
1515
</template>

docs/examples/toast/demo/Actions.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<script setup lang="ts">
2-
// import { useAppConfig } from '@bitrix24/b24icons-vue'
32
import Refresh9Icon from '@bitrix24/b24icons-vue/crm/Refresh9Icon'
43
54
export interface ExampleProps {

0 commit comments

Comments
 (0)