Docs: use static width for images (283)

This commit is contained in:
Marc Rousavy 2021-03-04 17:59:25 +01:00
parent b329107fa5
commit 8fe208645a
4 changed files with 7 additions and 7 deletions

View File

@ -7,7 +7,7 @@ sidebar_label: Camera Errors
import useBaseUrl from '@docusaurus/useBaseUrl';
<div>
<img align="right" width="35%" src={useBaseUrl("img/example_error.png")} />
<img align="right" width="283" src={useBaseUrl("img/example_error.png")} />
</div>
## Why?
@ -17,13 +17,13 @@ Since the Camera library is quite big, there is a lot that can "go wrong". The V
```ts
switch (error.code) {
case "device/configuration-error":
console.log("Failed to configure the camera device.")
// promt user
break
case "device/microphone-unavailable":
console.log("This camera device does not have a microphone.")
// ask for permission
break
case "capture/recording-in-progress":
console.log("Another recording is already in progress!")
// stop recording
break
default:
console.error(error)

View File

@ -7,7 +7,7 @@ sidebar_label: Camera Formats
import useBaseUrl from '@docusaurus/useBaseUrl';
<div>
<img align="right" width="35%" src={useBaseUrl("img/example.png")} />
<img align="right" width="283" src={useBaseUrl("img/example.png")} />
</div>
### What are camera formats?

View File

@ -8,7 +8,7 @@ slug: /
import useBaseUrl from '@docusaurus/useBaseUrl';
<div>
<img align="right" width="35%" src={useBaseUrl("img/example_intro.png")} />
<img align="right" width="283" src={useBaseUrl("img/example_intro.png")} />
</div>
## Installing the library

View File

@ -7,7 +7,7 @@ sidebar_label: Troubleshooting
import useBaseUrl from '@docusaurus/useBaseUrl';
<div>
<img align="right" width="35%" src={useBaseUrl("img/11_back.png")} />
<img align="right" width="283" src={useBaseUrl("img/11_back.png")} />
</div>
Before opening an issue, make sure you try the following: