Skip to content

Commit 4e3c727

Browse files
authored
Merge pull request #29 from gethinode/develop
fix: update preview args to snake case
2 parents c28abfe + 3928040 commit 4e3c727

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

content/blocks/preview.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Set the `device` argument to specify which device view to display by default. Op
5050

5151
### Controls below preview
5252

53-
By default the device switcher appears above the preview. Set `controls-placement: bottom` to move it below the preview area instead.
53+
By default the device switcher appears above the preview. Set `controls_placement: bottom` to move it below the preview area instead.
5454

5555
<!-- markdownlint-disable MD037 -->
5656
{{< example-bookshop lang="bookshop" >}}
@@ -61,15 +61,15 @@ By default the device switcher appears above the preview. Set `controls-placemen
6161
title: Controls Below
6262
content: Device switcher placed beneath the preview
6363
url: "https://en.wikipedia.org/wiki/Hugo_(software)"
64-
controls-placement: bottom
64+
controls_placement: bottom
6565
```
6666

6767
{{< /example-bookshop >}}
6868
<!-- markdownlint-enable MD037 -->
6969

7070
### Strict aspect ratio
7171

72-
By default the desktop preview fills the full container width and height (responsive mode). Set `desktop-responsive: false` to use a strict 16:10 contain fit instead — the full 1440 × 900px frame is always visible with no clipping, leaving symmetric gaps above and below when the container is wider than it is tall.
72+
By default the desktop preview fills the full container width and height (responsive mode). Set `desktop_responsive: false` to use a strict 16:10 contain fit instead — the full 1440 × 900px frame is always visible with no clipping, leaving symmetric gaps above and below when the container is wider than it is tall.
7373

7474
<!-- markdownlint-disable MD037 -->
7575
{{< example-bookshop lang="bookshop" >}}
@@ -81,7 +81,7 @@ By default the desktop preview fills the full container width and height (respon
8181
content: Full 1440×900px frame always visible, no clipping
8282
url: "https://en.wikipedia.org/wiki/Hugo_(software)"
8383
device: desktop
84-
desktop-responsive: false
84+
desktop_responsive: false
8585
```
8686

8787
{{< /example-bookshop >}}
@@ -271,9 +271,9 @@ JavaScript scales each device on page load and on every browser resize. Tablet a
271271
scale = min(containerWidth / deviceWidth, containerHeight / deviceHeight, 1)
272272
```
273273

274-
Desktop scaling depends on the `desktop-responsive` argument:
274+
Desktop scaling depends on the `desktop_responsive` argument:
275275

276-
| Mode | `desktop-responsive` | Behaviour |
276+
| Mode | `desktop_responsive` | Behaviour |
277277
|------|----------------------|-----------|
278278
| Responsive (default) | `true` | Scales to fill the full container width; iframe height is adjusted dynamically so the container height is also filled. The site inside sees a 1440px-wide viewport. |
279279
| Strict aspect ratio | `false` | Contain fit — the full 1440 × 900px frame is always visible; symmetric gaps may appear above and below on wide containers. |
@@ -301,7 +301,7 @@ Buttons for hidden device views are automatically hidden from the control bar, a
301301

302302
### Container constraints
303303

304-
In responsive mode (default), the desktop preview fills whatever container it is placed in. For best results with `desktop-responsive: false` or when using `cover: true`:
304+
In responsive mode (default), the desktop preview fills whatever container it is placed in. For best results with `desktop_responsive: false` or when using `cover: true`:
305305

306306
- Use `fluid: true` or `width: 12` for full-width layouts
307307
- Use a container at least as wide as the desired desktop zoom level

0 commit comments

Comments
 (0)