Skip to content

Commit 6e6c526

Browse files
fix: fix code block width in a demo (#160)
1 parent fa124c5 commit 6e6c526

File tree

2 files changed

+28
-21
lines changed

2 files changed

+28
-21
lines changed

src/css/custom.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,7 @@ button {
115115
font-size: 0.75em;
116116
line-height: 1em;
117117
}
118+
119+
.filter-demo-addon {
120+
max-width: 512px;
121+
}

src/demo/contexts/demo/defaultImages.ts

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,61 +8,63 @@ export const defaultImages: UrlOption[] = [
88
{
99
type: 'url',
1010
value: `${standardUrl}/jellybeans.png`,
11-
label: 'Jelly beans (256x256)',
11+
label: 'Jelly beans ',
1212
imageType: 'image',
1313
},
1414
{
1515
type: 'url',
1616
value: `${standardUrl}/female.png`,
17-
label: 'Female (256x256)',
17+
label: 'Female',
1818
imageType: 'image',
1919
},
2020
{
2121
type: 'url',
2222
value: `${standardUrl}/femaleBellLabs.png`,
23-
label: 'Female from Bell Labs (256x256)',
23+
label: 'Female from Bell Labs ',
2424
imageType: 'image',
2525
},
2626
{
2727
type: 'url',
28-
value: `${standardUrl}/mandrill.png`,
29-
label: 'Mandrill (267x256)',
28+
value: `${standardUrl}/house.png`,
29+
label: 'House',
3030
imageType: 'image',
3131
},
3232
{
3333
type: 'url',
34-
value: `${standardUrl}/house.png`,
35-
label: 'House (267x256)',
34+
value: `${standardUrl}/mandrill.png`,
35+
label: 'Mandrill',
3636
imageType: 'image',
3737
},
3838
{
3939
type: 'url',
4040
value: `${standardUrl}/peppers.png`,
41-
label: 'Peppers (267x267)',
41+
label: 'Peppers',
4242
imageType: 'image',
4343
},
44+
4445
{
4546
type: 'url',
4647
value: `${standardUrl}/barbara.jpg`,
47-
label: 'Barbara (512x512)',
48+
label: 'Barbara',
4849
imageType: 'image',
4950
},
51+
5052
{
5153
type: 'url',
5254
value: `${standardUrl}/boat.png`,
53-
label: 'Standard boat (512x512)',
55+
label: 'Standard boat',
5456
imageType: 'image',
5557
},
5658
{
5759
type: 'url',
5860
value: `${standardUrl}/male.png`,
59-
label: 'Male (1024x1024)',
61+
label: 'Male',
6062
imageType: 'image',
6163
},
6264
{
6365
type: 'url',
6466
value: `${standardUrl}/airport.png`,
65-
label: 'Airport (1024x1024)',
67+
label: 'Airport',
6668
imageType: 'image',
6769
},
6870
];
@@ -71,56 +73,57 @@ export const defaultMasks: UrlOption[] = [
7173
{
7274
type: 'url',
7375
value: `${morphologyMaskUrl}/circles.png`,
74-
label: 'Circles (507x509)',
76+
label: 'Circles',
7577
imageType: 'mask',
7678
},
7779
{
7880
type: 'url',
7981
value: `${morphologyMaskUrl}/shapes.png`,
80-
label: 'Shapes (640x612)',
82+
label: 'Shapes',
8183
imageType: 'mask',
8284
},
8385
{
8486
type: 'url',
8587
value: `${morphologyMaskUrl}/star.png`,
86-
label: 'Star (716x716)',
88+
label: 'Star',
8789
imageType: 'mask',
8890
},
8991
{
9092
type: 'url',
9193
value: `${standardMaskUrl}/house.png`,
92-
label: 'House (267x256)',
94+
label: 'House',
9395
imageType: 'mask',
9496
},
9597
{
9698
type: 'url',
9799
value: `${standardMaskUrl}/mandrill.png`,
98-
label: 'Mandrill (267x256)',
100+
label: 'Mandrill',
99101
imageType: 'mask',
100102
},
101103
{
102104
type: 'url',
103105
value: `${standardMaskUrl}/peppers.png`,
104-
label: 'Peppers (267x267)',
106+
label: 'Peppers',
105107
imageType: 'mask',
106108
},
109+
107110
{
108111
type: 'url',
109112
value: `${standardMaskUrl}/barbara.png`,
110-
label: 'Barbara (512x512)',
113+
label: 'Barbara',
111114
imageType: 'mask',
112115
},
113116
{
114117
type: 'url',
115118
value: `${standardMaskUrl}/boat.png`,
116-
label: 'Standard boat (512x512)',
119+
label: 'Standard boat)',
117120
imageType: 'mask',
118121
},
119122

120123
{
121124
type: 'url',
122125
value: `${standardMaskUrl}/male.png`,
123-
label: 'Male (1024x1024)',
126+
label: 'Male',
124127
imageType: 'mask',
125128
},
126129
];

0 commit comments

Comments
 (0)