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

View File

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

View File

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

View File

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