Skip to content

Commit 9a4aaa6

Browse files
committed
chore: fix image style in minimessage format page
1 parent 2f51847 commit 9a4aaa6

File tree

1 file changed

+40
-71
lines changed

1 file changed

+40
-71
lines changed

src/content/docs/adventure/minimessage/format.mdx

Lines changed: 40 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,10 @@ Examples
9494
<#00ff00>R G B!
9595
```
9696

97-
Preview
98-
<div style="display: inline-block;">
99-
<img style="max-height: 10rem;" alt="The result of parsing `<yellow>Hello <blue>World</blue>!`, shown in-game in the Minecraft client's chat window" src={Color1.src} />
100-
<img style="max-height: 10rem;" alt="The result of parsing `<red>This is a <green>test!`, shown in-game in the Minecraft client's chat window" src={Color2.src} />
101-
</div>
97+
<br/>
98+
99+
<img style="all: initial" alt="The result of parsing `<yellow>Hello <blue>World</blue>!`, shown in-game in the Minecraft client's chat window" src={Color1.src} />
100+
<img style="all: initial" alt="The result of parsing `<red>This is a <green>test!`, shown in-game in the Minecraft client's chat window" src={Color2.src} />
102101

103102
### Color (verbose)
104103

@@ -121,11 +120,10 @@ Examples
121120
<color:#FF5555>This is a <color:#55FF55>test!
122121
```
123122

124-
Preview
125-
<div style="display: inline-block;">
126-
<img style="max-height: 10rem;" alt="The result of parsing `<color:yellow>Hello <color:blue>World</color:blue>!`, shown in-game in the Minecraft client's chat window" src={ColorVerbose1.src} />
127-
<img style="max-height: 10rem;" alt="The result of parsing `<color:#FF5555>This is a <color:#55FF55>test!`, shown in-game in the Minecraft client's chat window" src={ColorVerbose2.src} />
128-
</div>
123+
<br/>
124+
125+
<img style="all: initial" alt="The result of parsing `<color:yellow>Hello <color:blue>World</color:blue>!`, shown in-game in the Minecraft client's chat window" src={ColorVerbose1.src} />
126+
<img style="all: initial" alt="The result of parsing `<color:#FF5555>This is a <color:#55FF55>test!`, shown in-game in the Minecraft client's chat window" src={ColorVerbose2.src} />
129127

130128
### Shadow Color
131129

@@ -146,12 +144,11 @@ Examples
146144
<shadow:#000000FF><b>Thicc
147145
```
148146

149-
Preview
150-
<div style="display: flex;">
151-
<img src={Shadow1.src} style="max-width: 50%; margin: auto;" alt="The result of parsing `<shadow:yellow>Hello <shadow:aqua:0.5>World</shadow>!` shown in-game in the Minecraft client's chat window"/>
152-
<img src={Shadow2.src} style="max-width: 50%; margin: auto;" alt="The result of parsing `<shadow:#FF5555>This is a <shadow:#55FF55>test!` shown in-game in the Minecraft client's chat window"/>
153-
<img src={Shadow3.src} style="max-width: 50%; margin: auto;" alt="The result of parsing `<shadow:#000000FF><b>Thicc` shown in-game in the Minecraft client's chat window"/>
154-
</div>
147+
<br/>
148+
149+
<img src={Shadow1.src} style="all: initial" alt="The result of parsing `<shadow:yellow>Hello <shadow:aqua:0.5>World</shadow>!` shown in-game in the Minecraft client's chat window"/>
150+
<img src={Shadow2.src} style="all: initial" alt="The result of parsing `<shadow:#FF5555>This is a <shadow:#55FF55>test!` shown in-game in the Minecraft client's chat window"/>
151+
<img src={Shadow3.src} style="all: initial" alt="The result of parsing `<shadow:#000000FF><b>Thicc` shown in-game in the Minecraft client's chat window"/>
155152

156153
### Decoration
157154

@@ -176,10 +173,8 @@ Examples
176173
<underlined>This is <bold>important</bold>!
177174
```
178175

179-
Preview
180-
<div style="display: inline-block;">
181-
<img style="max-height: 10rem;" alt="The result of parsing `<underlined>This is <bold>important</bold>!`, shown in-game in the Minecraft client's chat window" src={Decoration1.src} />
182-
</div>
176+
<br/>
177+
<img style="all: initial" alt="The result of parsing `<underlined>This is <bold>important</bold>!`, shown in-game in the Minecraft client's chat window" src={Decoration1.src} />
183178

184179
### Reset
185180

@@ -198,10 +193,8 @@ Examples
198193
<yellow><bold>Hello <reset>world!
199194
```
200195

201-
Preview
202-
<div style="display: inline-block;">
203-
<img style="max-height: 10rem;" alt="The result of parsing `<yellow><bold>Hello <reset>world!`, shown in-game in the Minecraft client's chat window" src={Reset1.src} />
204-
</div>
196+
<br/>
197+
<img style="all: initial" alt="The result of parsing `<yellow><bold>Hello <reset>world!`, shown in-game in the Minecraft client's chat window" src={Reset1.src} />
205198

206199
### Click
207200

@@ -220,10 +213,8 @@ Examples
220213
Click <click:copy_to_clipboard:Haha you suck> this </click>to copy your score!
221214
```
222215

223-
Preview
224-
<div style="display: inline-block;">
225-
<img style="max-height: 10rem;" alt="The result of parsing `<click:run_command:/seed>Click</click> to show the world seed!`, shown in-game in the Minecraft client's chat window" src={Click1.src} />
226-
</div>
216+
<br/>
217+
<img style="all: initial" alt="The result of parsing `<click:run_command:/seed>Click</click> to show the world seed!`, shown in-game in the Minecraft client's chat window" src={Click1.src} />
227218

228219
:::caution
229220

@@ -254,10 +245,8 @@ Examples
254245
<hover:show_text:'<red>test'>TEST
255246
```
256247

257-
Preview
258-
<div style="display: inline-block;">
259-
<img style="max-height: 10rem;" alt="The result of parsing `<hover:show_text:'<red>test'>TEST`, shown in-game in the Minecraft client's chat window" src={Hover1.src} />
260-
</div>
248+
<br/>
249+
<img style="all: initial" alt="The result of parsing `<hover:show_text:'<red>test'>TEST`, shown in-game in the Minecraft client's chat window" src={Hover1.src} />
261250

262251
### Keybind
263252

@@ -274,10 +263,8 @@ Examples
274263
Press <red><key:key.jump> to jump!
275264
```
276265

277-
Preview
278-
<div style="display: inline-block;">
279-
<img style="max-height: 10rem;" alt="The result of parsing `Press <red><key:key.jump> to jump!`, shown in-game in the Minecraft client's chat window" src={Key1.src} />
280-
</div>
266+
<br/>
267+
<img style="all: initial" alt="The result of parsing `Press <red><key:key.jump> to jump!`, shown in-game in the Minecraft client's chat window" src={Key1.src} />
281268

282269
### Translatable
283270

@@ -299,11 +286,9 @@ You should get a <lang:block.minecraft.diamond_block>!
299286
<lang:commands.drop.success.single:'<red>1':'<blue>Stone'>!
300287
```
301288

302-
Preview
303-
<div style="display: inline-block;">
304-
<img style="max-height: 10rem;" alt="The result of parsing `You should get a <lang:block.minecraft.diamond_block>!`, shown in-game in the Minecraft client's chat window in English" src={Translatable1.src} />
305-
<img style="max-height: 10rem;" alt="The result of parsing `<lang:commands.drop.success.single:'<red>1':'<blue>Stone'>!`, shown in-game in the Minecraft client's chat window in English" src={Translatable2.src} />
306-
</div>
289+
<br/>
290+
<img style="all: initial" alt="The result of parsing `You should get a <lang:block.minecraft.diamond_block>!`, shown in-game in the Minecraft client's chat window in English" src={Translatable1.src} />
291+
<img style="all: initial" alt="The result of parsing `<lang:commands.drop.success.single:'<red>1':'<blue>Stone'>!`, shown in-game in the Minecraft client's chat window in English" src={Translatable2.src} />
307292

308293
### Fallback
309294

@@ -346,10 +331,8 @@ Examples
346331
Shift-click <insert:test>this</insert> to insert!
347332
```
348333

349-
Preview
350-
<div style="display: inline-block;">
351-
<img style="max-height: 10rem;" alt="The result of parsing `Shift-click <insert:test>this</insert> to insert!`, shown in-game in the Minecraft client's chat window" src={Insertion1.src} />
352-
</div>
334+
<br/>
335+
<img style="all: initial" alt="The result of parsing `Shift-click <insert:test>this</insert> to insert!`, shown in-game in the Minecraft client's chat window" src={Insertion1.src} />
353336

354337
### Rainbow
355338

@@ -370,10 +353,8 @@ Examples
370353
<yellow>Woo: <rainbow:!2>||||||||||||||||||||||||</rainbow>!
371354
```
372355

373-
Preview
374-
<div style="display: inline-block;">
375-
<img style="max-height: 10rem;" alt="The result of parsing all four examples in series, shown in-game in the Minecraft client's chat window" src={Rainbow1.src} />
376-
</div>
356+
<br/>
357+
<img style="all: initial" alt="The result of parsing all four examples in series, shown in-game in the Minecraft client's chat window" src={Rainbow1.src} />
377358

378359
### Gradient
379360

@@ -393,11 +374,8 @@ Examples
393374
<yellow>Woo: <gradient:green:blue>||||||||||||||||||||||||</gradient>!
394375
```
395376

396-
Preview
397-
<div style="display: inline-block;">
398-
<img style="max-height: 10rem;" alt="The result of parsing the examples for the gradient tag, shown in-game in the Minecraft client's chat window" src={Gradient1.src} />
399-
</div>
400-
377+
<br/>
378+
<img style="all: initial" alt="The result of parsing the examples for the gradient tag, shown in-game in the Minecraft client's chat window" src={Gradient1.src} />
401379

402380
### Transition
403381

@@ -414,11 +392,8 @@ Examples
414392
<transition:white:black:red:[phase]>Hello world [phase]</transition>
415393
```
416394

417-
Preview
418-
<div style="display: inline-block;">
419-
<img style="max-height: 10rem;" alt="The result of parsing `<transition:white:black:red:[phase]>Hello World [phase]</transition>`, shown in-game in the Minecraft client's chat window" src={Transition1.src} />
420-
</div>
421-
395+
<br/>
396+
<img style="all: initial" alt="The result of parsing `<transition:white:black:red:[phase]>Hello World [phase]</transition>`, shown in-game in the Minecraft client's chat window" src={Transition1.src} />
422397

423398
### Font
424399

@@ -436,10 +411,8 @@ Nothing <font:uniform>Uniform <font:alt>Alt </font> Uniform
436411
<font:myfont:custom_font>Uses a custom font from a resource pack</font>
437412
```
438413

439-
Preview
440-
<div style="display: inline-block;">
441-
<img style="max-height: 10rem;" alt="The result of parsing `Nothing <font:uniform>Uniform <font:alt>Alt </font> Uniform`, shown in-game in the Minecraft client's chat window" src={Font1.src} />
442-
</div>
414+
<br/>
415+
<img style="all: initial" alt="The result of parsing `Nothing <font:uniform>Uniform <font:alt>Alt </font> Uniform`, shown in-game in the Minecraft client's chat window" src={Font1.src} />
443416

444417
### Newline
445418

@@ -460,10 +433,8 @@ Let me insert a <newline>line break here.
460433
<hover:show_text:'<red>Hover with a<newline><green>line break'>Text with<newline>line break</hover>
461434
```
462435

463-
Preview
464-
<div style="display: inline-block;">
465-
<img style="max-height: 10rem;" alt="The result of parsing `<hover:show_text:'<red>Hover with a<newline><green>line break'>Text with<newline>line break</hover>`, shown in-game in the Minecraft client's chat window" src={Newline1.src} />
466-
</div>
436+
<br/>
437+
<img style="all: initial" alt="The result of parsing `<hover:show_text:'<red>Hover with a<newline><green>line break'>Text with<newline>line break</hover>`, shown in-game in the Minecraft client's chat window" src={Newline1.src} />
467438

468439
### Selector
469440

@@ -484,10 +455,8 @@ Examples
484455
Hello <selector:@e[limit=5]>, I'm <selector:@s>!
485456
```
486457

487-
Preview
488-
<div style="display: inline-block;">
489-
<img style="max-height: 10rem;" alt="The result of parsing `Hello <selector:@e[limit=5]>, I'm <selector:@s>!`, show in-game in the Minecraft client's chat window" src={Selector1.src} />
490-
</div>
458+
<br/>
459+
<img style="all: initial" alt="The result of parsing `Hello <selector:@e[limit=5]>, I'm <selector:@s>!`, show in-game in the Minecraft client's chat window" src={Selector1.src} />
491460

492461
### Score
493462

0 commit comments

Comments
 (0)