Skip to content

Commit aabdebe

Browse files
zlataovcekashike
authored andcommitted
fix: too large images
1 parent 6d9bc62 commit aabdebe

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

Diff for: src/content/docs/paper/dev/api/command-api/misc/comparison-bukkit-brigadier.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -113,5 +113,4 @@ this.getLifecycleManager().registerEventHandler(LifecycleEvents.COMMANDS, comman
113113

114114
And we are done! As you can see here, both commands do the same thing:
115115

116-
![](./assets/bukkitparty-command.png)
117-
![](./assets/paperparty-command.png)
116+
<span style="display: flex;">![](./assets/bukkitparty-command.png) ![](./assets/paperparty-command.png)</span>

Diff for: src/content/docs/paper/dev/api/entity-api/display-entities.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ Bukkit.getScheduler().runTaskTimer(plugin, task -> {
195195
}, 1 /* delay the initial transformation by one tick from display creation */, duration);
196196
```
197197

198-
![Interpolation example](./assets/display-interp.gif)
198+
<span class="img-inline-center">![Interpolation example](./assets/display-interp.gif)</span>
199199

200200
## Use cases
201201

Diff for: src/content/docs/velocity/admin/reference/comparison.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ Meet [Hyrum's Law](https://www.hyrumslaw.com/):
7171
7272
Here's Hyrum's law in comic format, in case that eases getting the point across:
7373

74-
> [![xkcd #1172](https://imgs.xkcd.com/comics/workflow.png)](https://xkcd.com/1172/)
74+
> <span class="img-inline">[![xkcd #1172](https://imgs.xkcd.com/comics/workflow.png)](https://xkcd.com/1172/)</span>
75+
>
7576
> ["Workflow"](https://xkcd.com/1172/) from [xkcd](https://xkcd.com/) by Randal Munroe,
7677
> [licensed](https://xkcd.com/license.html) under
7778
> [CC BY-NC 2.5](https://creativecommons.org/licenses/by-nc/2.5/)

Diff for: src/styles/custom.css

+7
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424
.sl-markdown-content img:not([alt="Diagram"]) {
2525
width: 100%;
2626
}
27+
.sl-markdown-content .img-inline img {
28+
margin: 0;
29+
width: auto;
30+
}
31+
.sl-markdown-content .img-inline-center img {
32+
width: auto;
33+
}
2734

2835
/* Safari fixes for logo sizing */
2936
.hero-html > img {

0 commit comments

Comments
 (0)