Skip to content

Commit c71faa2

Browse files
committed
fix wip fix code block width
1 parent fa124c5 commit c71faa2

File tree

3 files changed

+34
-30
lines changed

3 files changed

+34
-30
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/components/ImageDemo.tsx

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -32,25 +32,23 @@ export default function ImageDemo({
3232
isMask,
3333
}}
3434
>
35-
<div style={{ display: 'inline-flex', flexDirection: 'column', gap: 4 }}>
36-
<div
37-
className="filter-demo alert--info"
38-
style={{
39-
margin: 4,
40-
borderRadius: 4,
41-
display: 'inline-flex',
42-
flexDirection: 'column',
43-
gap: 8,
44-
padding: 0,
45-
}}
46-
>
47-
<ImageDemoImages />
48-
<ImageDemoToolbar />
49-
<ImageDemoAddon
50-
exampleCode={code}
51-
defaultEditorCode={defaultEditorCode}
52-
/>
53-
</div>
35+
<div
36+
className="filter-demo alert--info"
37+
style={{
38+
margin: 4,
39+
borderRadius: 4,
40+
display: 'inline-flex',
41+
flexDirection: 'column',
42+
gap: 8,
43+
padding: 0,
44+
}}
45+
>
46+
<ImageDemoImages />
47+
<ImageDemoToolbar />
48+
<ImageDemoAddon
49+
exampleCode={code}
50+
defaultEditorCode={defaultEditorCode}
51+
/>
5452
</div>
5553
</ImageDemoProvider>
5654
);

src/demo/contexts/demo/defaultImages.ts

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@ export const defaultImages: UrlOption[] = [
2626
{
2727
type: 'url',
2828
value: `${standardUrl}/mandrill.png`,
29-
label: 'Mandrill (267x256)',
29+
label: 'Mandrill (267x266)',
3030
imageType: 'image',
3131
},
3232
{
3333
type: 'url',
34-
value: `${standardUrl}/house.png`,
35-
label: 'House (267x256)',
34+
value: `${standardUrl}/peppers.png`,
35+
label: 'Peppers (267x267)',
3636
imageType: 'image',
3737
},
3838
{
3939
type: 'url',
40-
value: `${standardUrl}/peppers.png`,
41-
label: 'Peppers (267x267)',
40+
value: `${standardUrl}/house.png`,
41+
label: 'House (511x514)',
4242
imageType: 'image',
4343
},
4444
{
@@ -47,6 +47,7 @@ export const defaultImages: UrlOption[] = [
4747
label: 'Barbara (512x512)',
4848
imageType: 'image',
4949
},
50+
5051
{
5152
type: 'url',
5253
value: `${standardUrl}/boat.png`,
@@ -86,22 +87,23 @@ export const defaultMasks: UrlOption[] = [
8687
label: 'Star (716x716)',
8788
imageType: 'mask',
8889
},
90+
8991
{
9092
type: 'url',
91-
value: `${standardMaskUrl}/house.png`,
92-
label: 'House (267x256)',
93+
value: `${standardMaskUrl}/mandrill.png`,
94+
label: 'Mandrill (267x266)',
9395
imageType: 'mask',
9496
},
9597
{
9698
type: 'url',
97-
value: `${standardMaskUrl}/mandrill.png`,
98-
label: 'Mandrill (267x256)',
99+
value: `${standardMaskUrl}/peppers.png`,
100+
label: 'Peppers (267x267)',
99101
imageType: 'mask',
100102
},
101103
{
102104
type: 'url',
103-
value: `${standardMaskUrl}/peppers.png`,
104-
label: 'Peppers (267x267)',
105+
value: `${standardMaskUrl}/house.png`,
106+
label: 'House (511x514)',
105107
imageType: 'mask',
106108
},
107109
{

0 commit comments

Comments
 (0)